pushmtm/ViewerInc/PushViewerDoc.h
changeset 0 84ad3b177aa3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pushmtm/ViewerInc/PushViewerDoc.h	Mon Mar 30 12:49:49 2009 +0300
@@ -0,0 +1,86 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Declaration of CPushViewerDocument 
+*
+*/
+
+
+
+#ifndef PUSHVIEWERDOC_H
+#define PUSHVIEWERDOC_H
+
+//  INCLUDES
+
+#include <msgeditordocument.h>
+
+// CLASS DECLARATION
+
+/**
+* Push Viewer application's document.
+*/
+class CPushViewerDocument : public CMsgEditorDocument
+    {
+    public: // Constructors and destructor
+
+        static CPushViewerDocument* NewL( CEikApplication& aApp );  
+
+    public: // New functions
+
+        /**
+        * Issue EPushMtmCmdLoadService to MTM UI.
+        * @return None.
+        */
+        void IssueLoadServiceL();
+
+        /**
+        * Issue KMtmUiFunctionMessageInfo to MTM UI.
+        * @return None.
+        */
+        void IssueMessageInfoL();
+
+    private:  // Constructors and destructor
+
+        CPushViewerDocument( CEikApplication& aApp );
+
+    private: // Functions from base classes
+
+        /**
+        * From CEikDocument.
+        */
+        CEikAppUi* CreateAppUiL();
+
+        /**
+        * From CMsgEditorDocument
+        */
+        TMsvId DefaultMsgFolder() const;
+
+        /**
+        * From CMsgEditorDocument
+        */
+        TMsvId DefaultMsgService() const;
+
+        /**
+        * From CMsgEditorDocument
+        */
+        TMsvId CreateNewL( TMsvId aService, TMsvId aFolder );
+
+        /**
+        * From CMsgEditorDocument
+        */
+        void EntryChangedL();
+    };
+
+#endif // PUSHVIEWERDOC_H
+            
+// End of File