summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelmarketplaceinboxinventory.h
diff options
context:
space:
mode:
authorcallum <none@none>2011-11-01 10:57:34 -0700
committercallum <none@none>2011-11-01 10:57:34 -0700
commit148e5f436dbb6f9126f1f6235e9056d4fb14ca66 (patch)
tree0e4c056382e0e2d0752c6ed2ceee25f528c30b61 /indra/newview/llpanelmarketplaceinboxinventory.h
parent2777ddd0607caeeee16deae79ca8284bdaccd261 (diff)
parentd86def6f03acc3b4a07a30a2f7912e6dc35edf27 (diff)
merge with head
Diffstat (limited to 'indra/newview/llpanelmarketplaceinboxinventory.h')
-rw-r--r--indra/newview/llpanelmarketplaceinboxinventory.h36
1 files changed, 28 insertions, 8 deletions
diff --git a/indra/newview/llpanelmarketplaceinboxinventory.h b/indra/newview/llpanelmarketplaceinboxinventory.h
index 46eeb9ea7f..09b14ec547 100644
--- a/indra/newview/llpanelmarketplaceinboxinventory.h
+++ b/indra/newview/llpanelmarketplaceinboxinventory.h
@@ -69,16 +69,15 @@ public:
};
LLInboxFolderViewFolder(const Params& p);
- ~LLInboxFolderViewFolder();
void draw();
- void computeFreshness();
- void deFreshify();
-
void selectItem();
void toggleOpen();
+ void computeFreshness();
+ void deFreshify();
+
bool isFresh() const { return mFresh; }
protected:
@@ -88,15 +87,36 @@ protected:
};
-class LLInboxFolderViewItem : public LLFolderViewItem
+class LLInboxFolderViewItem : public LLFolderViewItem, public LLBadgeOwner
{
public:
- LLInboxFolderViewItem(const Params& p)
- : LLFolderViewItem(p)
+ struct Params : public LLInitParam::Block<Params, LLFolderViewItem::Params>
{
- }
+ Optional<LLBadge::Params> new_badge;
+
+ Params()
+ : new_badge("new_badge")
+ {
+ }
+ };
+
+ LLInboxFolderViewItem(const Params& p);
BOOL handleDoubleClick(S32 x, S32 y, MASK mask);
+
+ void draw();
+
+ void selectItem();
+
+ void computeFreshness();
+ void deFreshify();
+
+ bool isFresh() const { return mFresh; }
+
+protected:
+ void setCreationDate(time_t creation_date_utc);
+
+ bool mFresh;
};
#endif //LL_INBOXINVENTORYPANEL_H