S60 3rd Edition SDK for Symbian OS
Example Applications Guide

SIPExLogView.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : SIPExLogView.h
00004 *  Part of     : SIPEx
00005 *  Interface   : 
00006 *  Description : 
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2004-2006 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 #ifndef __SIPEXLOGVIEW_H__
00017 #define __SIPEXLOGVIEW_H__
00018 
00019 // INCLUDES
00020 #include <aknview.h>
00021 
00022 #include "SIPEx.hrh"
00023 
00024 // CONSTANTS
00025 // UID of view
00026 const TUid KLogViewId = { ESIPExView2Id };
00027 
00028 // FORWARD DECLARATIONS
00029 class CSIPExEngine;
00030 class CSIPExLogContainer;
00031 
00032 // CLASS DECLARATION
00033 
00034 /**
00035 *  CSIPExLogView view class.
00036 * 
00037 */
00038 class CSIPExLogView : public CAknView
00039     {
00040     public: // Constructors and destructor
00041 
00042         /**
00043         * First phase contruction
00044         */
00045         static CSIPExLogView* NewLC( CSIPExEngine& aEngine );
00046         
00047         /**
00048         * Destructor.
00049         */
00050         ~CSIPExLogView();
00051         
00052     private:
00053     
00054         /**
00055         * C++ default constructor
00056         * @param aEngine The reference to the application engine.
00057         */
00058         CSIPExLogView( CSIPExEngine& aEngine );
00059         
00060         /**
00061         * EPOC default constructor.
00062         */
00063         void ConstructL();
00064 
00065     public: // Functions from base classes
00066         
00067         /**
00068         * Return Uid
00069         */
00070         TUid Id() const;
00071 
00072         /**
00073         * Handle Commands
00074         */
00075         void HandleCommandL( TInt aCommand );
00076 
00077         /**
00078         * Handle size change
00079         */
00080         void HandleViewRectChange();
00081         
00082         /**
00083         * Handle menu initialization event.
00084         * @param aResourceId Resource ID identifying the menu pane to initialise.
00085         * @param aMenuPane The in-memory representation of the menu pane.
00086         */
00087         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); 
00088 
00089     private:
00090 
00091         /**
00092         * From AknView, activates view
00093         */
00094         void DoActivateL( const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
00095             const TDesC8& aCustomMessage );
00096 
00097         /**
00098         * From AknView, deactivates view
00099         */
00100         void DoDeactivate();
00101         
00102     public:
00103         
00104         /**
00105         * Return pointer to container, ownership is not transferred
00106         */
00107         CSIPExLogContainer* Container();
00108 
00109     private: // Data
00110         CSIPExLogContainer* iContainer;
00111         
00112         CSIPExEngine& iEngine;
00113     };
00114 
00115 #endif // __SIPEXLOGVIEW_H__
00116 
00117 // End of File

© Nokia 2006

Back to top