Nokia N97 SDK
Example Applications Guide

animationappui.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : animationappui.h
00004 *  Part of     : Animation example
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 __ANIMATIONAPPUI_H__
00017 #define __ANIMATIONAPPUI_H__
00018 
00019 // INCLUDES
00020 #include <aknappui.h>
00021 
00022 #include "clientdll.h"
00023 #include "clientimagecommander.h"
00024 
00025 // CONSTANTS
00026 // The location of the animation server changes in the emulator
00027 // and target builds.
00028 #if defined( __WINS__ )
00029 _LIT( KServerDllFilename, "Z:\\system\\apps\\animation\\ANIMATION_SERVER" );
00030 #else
00031 // drive-neutral path (MMC-installations safe)
00032 _LIT( KServerDllFilename, "\\system\\apps\\animation\\ANIMATION_SERVER" );
00033 #endif
00034 
00035 // FORWARD DECLARATIONS
00036 class CAnimationAppView;
00037 
00038 // CLASS DECLARATION
00039 
00040 /**
00041 * CAnimationAppUi application UI class.
00042 * An instance of class CAnimationAppUi is the UserInterface part of the AVKON
00043 * application framework for the Animation example application.
00044 */
00045 class CAnimationAppUi : public CAknAppUi
00046     {
00047     public: // Constructors and destructor
00048 
00049         /**
00050         * CAnimationAppUi.
00051         * C++ default constructor. This needs to be public due to
00052         * the way the framework constructs the AppUi.
00053         * @param aSession the window server session to use.
00054         */
00055         CAnimationAppUi( RWsSession& aSession );
00056 
00057         /**
00058         * ~CAnimationAppUi.
00059         * Virtual Destructor.
00060         */
00061         virtual ~CAnimationAppUi();
00062 
00063     public:  // Functions from base classes
00064 
00065         /**
00066         * From CEikAppUi, HandleCommandL.
00067         * Takes care of command handling.
00068         * @param aCommand The enumerated code for the option selected.
00069         */
00070         void HandleCommandL( TInt aCommand );
00071         
00072         /**
00073         * From CEikAppUi, HandleResourceChangeL.
00074         * Handles resource changes.
00075         * @param aType Resource change type to be handled
00076         */
00077         void HandleResourceChangeL( TInt aType );
00078 
00079     private: // Constructor
00080 
00081         /**
00082         * ConstructL.
00083         * 2nd phase constructor.
00084         */
00085         void ConstructL();
00086 
00087     private: // New methods
00088 
00089         /**
00090         * SetupClientDllL.
00091         * Setup the animation client Dll.
00092         */
00093         void SetupClientDllL();
00094 
00095         /**
00096         * SetupImageCommanderL.
00097         * Setup the animation image commander.
00098         */
00099         void SetupImageCommanderL();
00100 
00101     private: // Data
00102 
00103         /**
00104         * iAppView
00105         * The application view
00106         * Owned by CAnimationAppUi object.
00107         */
00108         CAnimationAppView* iAppView;
00109 
00110         // Do not change the order of these variables, as they are called
00111         // in the AppUi constructor list in the order listed here
00112 
00113         /**
00114         * iClientDll
00115         * Animation client dll.
00116         */
00117         RClientDll iClientDll;
00118 
00119         /**
00120         * iClientCommander
00121         * Controls an animation image object.
00122         */
00123         RImageCommander iClientCommander;
00124     };
00125 
00126 #endif // __ANIMATIONAPPUI_H__
00127 
00128 // End of File

© Nokia 2009

Back to top