examples/ForumNokia/S60_3rd_Edition_TextMTM_Example/modules/Viewer/inc/TxtViewerAppUi.h

00001 /*
00002 * ============================================================================
00003 *  Name     : CTxtViewerAppUi 
00004 *  
00005 *
00006 *  Description:
00007 *     
00008 *  Version:
00009 *
00010 *  Copyright (C) 2002 - 2005 Nokia Corporation.
00011 *  This material, including documentation and any related 
00012 *  computer programs, is protected by copyright controlled by 
00013 *  Nokia Corporation. All rights are reserved. Copying, 
00014 *  including reproducing, storing,  adapting or translating, any 
00015 *  or all of this material requires the prior written consent of 
00016 *  Nokia Corporation. This material also contains confidential 
00017 *  information which may not be disclosed to others without the 
00018 *  prior written consent of Nokia Corporation.
00019 *
00020 * ============================================================================
00021 */
00022 
00023 #ifndef MSGSMSVIEWERAPPUI_H
00024 #define MSGSMSVIEWERAPPUI_H
00025 
00026 // INCLUDES
00027 #include <eikapp.h>             // CEikApplication
00028 #include <eikdoc.h>             // CEikDocument
00029 #include <e32std.h>             // Standard epoc32 includes
00030 #include <coeccntx.h>   // Graphics contexts
00031 #include <aknappui.h>   // CAknAppUi
00032 #include <mtmuibas.h>   // UI Base MTM
00033 
00034 class CTxtViewerAppView;
00035 class CTxtViewerDocument;
00036 
00038 //
00039 // -----> CActiveConsole (definition)
00040 //
00041 // An abstract class which provides the facility to issue key requests. 
00042 //
00044 class CWaiter : public CActive
00045         {
00046 public:
00047           // Construction
00048         CWaiter();
00049         void ConstructL();
00050 
00051           // Destruction
00052         ~CWaiter();
00053 
00054          void Request();
00055         
00056           // Cancel request.
00057           // Defined as pure virtual by CActive;
00058           // implementation provided by this class.
00059         void DoCancel();
00060 
00061           // Service completed request.
00062           // Defined as pure virtual by CActive;
00063           // implementation provided by this class,
00064         void RunL();
00065 
00066           
00067 protected:
00068 
00069         };
00070 
00071 // CLASS DECLARATION
00072 
00077 class CTxtViewerAppUi : public CAknAppUi
00078                          
00079     {
00080     public:  // Constructors and destructor
00081 
00082                 CTxtViewerDocument* Document() const;
00083         
00084         
00085         
00086 
00090         CTxtViewerAppUi();
00091 
00095         virtual ~CTxtViewerAppUi();
00096 
00097     protected: // New functions
00098         private:  
00099             void SendL();   
00100             void SaveToDraftsL();       
00101     protected: // Functions from base classes
00102         
00103             
00104         
00111         virtual TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
00112 
00117         virtual void HandleCommandL(TInt aCommand);
00118 
00124         virtual void DynInitMenuPaneL(TInt aMenuId, CEikMenuPane* aMenuPane);
00125         
00129         void HandleStatusPaneSizeChange();
00130                 
00131     protected:
00132 
00136         virtual void ConstructL();
00137 
00138     protected:     // Data
00139         private:
00140         
00141                 CTxtViewerAppView* iAppView;
00142             CMsvOperation* iOp;
00143             TRequestStatus iStatus;
00144                 CMsvEntrySelection* iSelection;
00145             TMsvId iServiceId;
00146         };
00147 #endif // MSGSMSVIEWERAPPUI_H
00148 //  End of File

Generated by  doxygen 1.6.2