summaryrefslogtreecommitdiff
path: root/yapp/popup_history.h
diff options
context:
space:
mode:
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.