summaryrefslogtreecommitdiff
path: root/yapp/popup_history.h
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-04-25 15:57:51 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-04-25 15:57:51 +0000
commit5ac26cff397836222eb8d51d866890f96321c601 (patch)
tree7ab4ff3ed3c36675df3d2da5a912311df499a8fa /yapp/popup_history.h
parent8e4bd51aa53343a76b1ddc9c7e47f3d56cb24437 (diff)
Optimizations, removed redundant code, better compatibility with popup+
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@512 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/popup_history.h')
-rw-r--r--yapp/popup_history.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/yapp/popup_history.h b/yapp/popup_history.h
index db48a8c..f79b6ee 100644
--- a/yapp/popup_history.h
+++ b/yapp/popup_history.h
@@ -52,7 +52,6 @@ struct PopupHistoryData{
};
class PopupHistoryList{
- protected:
private:
PopupHistoryData *historyData; //historyData[0] - oldest, historyData[size - 1] - newest
int count;
@@ -67,8 +66,8 @@ class PopupHistoryList{
PopupHistoryList(int renderer = RENDER_DEFAULT);
~PopupHistoryList();
- int GetRenderer();
- void SetRenderer(int newRenderer);
+ int GetRenderer() { return renderer; }
+ void SetRenderer(int newRenderer) { renderer = newRenderer; }
void Add(char *title, char *message, time_t timestamp);
void Add(wchar_t *title, wchar_t *message, time_t timestamp);
@@ -76,8 +75,8 @@ class PopupHistoryList{
PopupHistoryData *Get(int index);
void Clear();
- int Count();
- int Size();
+ int Count() { return count; }
+ int Size() { return size; }
};
/*Shows a history with the last popups.