summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelmarketplaceinboxinventory.h
diff options
context:
space:
mode:
authorLeslie Linden <leslie@lindenlab.com>2011-10-31 15:13:57 -0700
committerLeslie Linden <leslie@lindenlab.com>2011-10-31 15:13:57 -0700
commit7a31a48536f8a373b4e857ca8b906a6984530a04 (patch)
tree6965e5a1e180bc3f3415fe27de4e6e4a141547af /indra/newview/llpanelmarketplaceinboxinventory.h
parent334104ffa91d60d855408eca427da81a0d65908a (diff)
parentd86def6f03acc3b4a07a30a2f7912e6dc35edf27 (diff)
merge
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