diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-10-29 18:17:04 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-10-29 18:17:04 +0000 |
commit | 4d01f5f5096cb4d22c4a7ba17cc82977c7f5f19b (patch) | |
tree | 9353d79ddff12a1c2ced3e300d61a516f2572fb5 /plugins/MirandaG15/src/CNotificationScreen.h | |
parent | 2307fd7414d16d4ff936607a215e9a2ca0294741 (diff) |
Adopted MirandaG15 plugin
First compilable version and 32-bit only.
git-svn-id: http://svn.miranda-ng.org/main/trunk@6681 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirandaG15/src/CNotificationScreen.h')
-rw-r--r-- | plugins/MirandaG15/src/CNotificationScreen.h | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/plugins/MirandaG15/src/CNotificationScreen.h b/plugins/MirandaG15/src/CNotificationScreen.h new file mode 100644 index 0000000000..837398238a --- /dev/null +++ b/plugins/MirandaG15/src/CNotificationScreen.h @@ -0,0 +1,95 @@ +#ifndef _CNOTIFICATIONSCREEN_H_
+#define _CNOTIFICATIONSCREEN_H_
+
+#include "CScreen.h"
+#include "CLCDLabel.h"
+#include "CLCDTextLog.h"
+#include "CLCDBar.h"
+#include "CLCDInput.h"
+
+class CNotificationEntry
+{
+public:
+ bool bMessage;
+ tm Time;
+ tstring strText;
+ tstring strTitle;
+ HANDLE hContact;
+ EventType eType;
+};
+
+class CNotificationScreen : public CScreen
+{
+public:
+ // Constructor
+ CNotificationScreen();
+ // Destructor
+ ~CNotificationScreen();
+
+ // Initializes the screen
+ bool Initialize();
+ // Shutdown the scren
+ bool Shutdown();
+ // Updates the screen
+ bool Update();
+ // Draws the screen
+ bool Draw(CLCDGfx *pGfx);
+
+ // Called when the screen size has changed
+ void OnSizeChanged();
+ // Called when the configuration has changed
+ void OnConfigChanged();
+ // Called when an event is received
+ void OnEventReceived(CEvent *pEvent);
+ // Called when an LCD-button is pressed
+ void OnLCDButtonDown(int iButton);
+ // Called when an LCD-button event is repeated
+ void OnLCDButtonRepeated(int iButton);
+ // Called when an LCD-button is released
+ void OnLCDButtonUp(int iButton);
+ // Called when the screen is activated
+ void OnActivation();
+ // Called when the screen is deactivated
+ void OnDeactivation();
+ // Called when the screen has expired
+ void OnExpiration();
+private:
+ /*
+ // activates the input box
+ void ActivateMessageMode();
+ // deactivates the input box
+ void DeactivateMessageMode();
+ // sends the message
+ void SendCurrentMessage();
+ // invalidates the message
+ void InvalidateMessageMode(tstring strMessage);
+ */
+
+ // displays the specified notification
+ void DisplayNotification(CNotificationEntry *pEntry);
+ // updates all objects
+ void UpdateObjects();
+
+ // cached notifications
+ list<CNotificationEntry*> m_LNotifications;
+
+ // objects
+ CLCDLabel m_EventText;
+ CLCDTextLog m_MessageText;
+ CLCDLabel m_TitleText;
+ CLCDLabel m_Timestamp;
+ CLCDBar m_Scrollbar;
+ //CLCDInput m_Input;
+
+ // Contact off the current event
+ CNotificationEntry *m_pEntry;
+
+ // message mode variables
+ /*
+ bool m_bMessageMode;
+ enum { REPLY_STATE_NONE,REPLY_STATE_INPUT,REPLY_STATE_SENDING,REPLY_STATE_FAILED} m_eReplyState;
+ HANDLE m_hMessage;
+ */
+};
+
+#endif
\ No newline at end of file |