aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llgroupnotify.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llgroupnotify.h')
-rw-r--r--linden/indra/newview/llgroupnotify.h39
1 files changed, 19 insertions, 20 deletions
diff --git a/linden/indra/newview/llgroupnotify.h b/linden/indra/newview/llgroupnotify.h
index 82f8a07..7eac922 100644
--- a/linden/indra/newview/llgroupnotify.h
+++ b/linden/indra/newview/llgroupnotify.h
@@ -17,7 +17,8 @@
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 20 * online at
21 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 22 *
22 * By copying, modifying or distributing this software, you acknowledge 23 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 24 * that you have read and understood your obligations described above,
@@ -37,39 +38,37 @@
37#include "lldarray.h" 38#include "lldarray.h"
38#include "lltimer.h" 39#include "lltimer.h"
39#include "llviewermessage.h" 40#include "llviewermessage.h"
41#include "llnotifications.h"
40 42
41class LLButton; 43class LLButton;
42 44
43// NotifyBox - for notifications that require a response from the 45// NotifyBox - for notifications that require a response from the
44// user. Replaces LLMessageBox. 46// user. Replaces LLMessageBox.
45class LLGroupNotifyBox 47class LLGroupNotifyBox
46: public LLPanel 48: public LLPanel,
49 public LLInitClass<LLGroupNotifyBox>
47{ 50{
48public: 51public:
49 static LLGroupNotifyBox* show(const std::string& subject,
50 const std::string& message,
51 const std::string& from_name,
52 const LLUUID& group_id,
53 const U32& time_stamp,
54 const bool& has_inventory = FALSE,
55 const std::string& inventory_name = std::string(),
56 LLOfferInfo* inventory_offer = NULL);
57 void close(); 52 void close();
58 53
54 static void initClass();
55 static void destroyClass();
56 static bool onNewNotification(const LLSD& notification);
57
59protected: 58protected:
60 // Non-transient messages. You can specify non-default button 59 // Non-transient messages. You can specify non-default button
61 // layouts (like one for script dialogs) by passing various 60 // layouts (like one for script dialogs) by passing various
62 // numbers in for "layout". 61 // numbers in for "layout".
63 LLGroupNotifyBox(const std::string& subject, 62 LLGroupNotifyBox(const std::string& subject,
64 const std::string& message, 63 const std::string& message,
65 const std::string& from_name, 64 const std::string& from_name,
66 const LLUUID& group_id, 65 const LLUUID& group_id,
67 const LLUUID& group_insignia, 66 const LLUUID& group_insignia,
68 const std::string& group_name, 67 const std::string& group_name,
69 const U32& t, 68 const LLDate& time_stamp,
70 const bool& has_inventory = FALSE, 69 const bool& has_inventory,
71 const std::string& inventory_name = std::string(), 70 const std::string& inventory_name,
72 LLOfferInfo* inventory_offer = NULL); 71 const LLSD& inventory_offer);
73 72
74 /*virtual*/ ~LLGroupNotifyBox(); 73 /*virtual*/ ~LLGroupNotifyBox();
75 74
@@ -97,7 +96,7 @@ protected:
97 // for "next" button 96 // for "next" button
98 static void onClickNext(void* data); 97 static void onClickNext(void* data);
99 98
100protected: 99private:
101 // Are we sliding onscreen? 100 // Are we sliding onscreen?
102 BOOL mAnimating; 101 BOOL mAnimating;
103 102