shoppinglistappui.h

来自「Symbian 的购物程序 shoppinglist-vc」· C头文件 代码 · 共 86 行

H
86
字号
/*  Copyright (c) 2004, Nokia. All rights reserved */

#ifndef __SHOPPINGLIST_APPUI_H__
#define __SHOPPINGLIST_APPUI_H__

// INCLUDES
#include <aknappui.h>
#include <coecntrl.h>
#include <aknlists.h>

// CONSTANTS
const TInt KTextBufferLength = 40;
_LIT( KNewitem,"New item" );

// FORWARD DECLARATIONS
class CShoppingListDocument;
class CShoppingListAppView;

// CLASS DECLARATION

/** 
*  CShoppingListAppUi
*  An instance of class CShoppingListAppUi is the UserInterface part of the AVKON
*  application framework for the ShoppingList example application
*/
class CShoppingListAppUi : public CAknAppUi
    {
    public:

        /**
        * CShoppingListAppUi
        * Perform the first phase of two phase construction.
        * This needs to be public due to the way the framework constructs 
        * the AppUi 
        */
        CShoppingListAppUi();

        /**
        * ConstructL
        * Perform the second phase construction of a CShoppingListAppUi object.
        * This needs to be public due to the way the framework constructs
        * the AppUi 
        */
        void ConstructL();

        /**
        * ~CShoppingListAppUi
        * Destructor
        */
        virtual ~CShoppingListAppUi();

        /**
        * GetDocument
        * Get a pointer to the application Document object
        * @return a pointer to the application Document object
        */
        CShoppingListDocument* GetDocument();

    public: // from CAknAppUi

        /**
        * HandleCommandL
        * Handle user menu selections
        * @param aCommand The enumerated code for the option selected
        */
        void HandleCommandL( TInt aCommand );

        /**
        * HandleModelChangeL
        * Handle an event which has caused the shopping list to change
        */
        void HandleModelChangeL();

    private:

        /**
        * iAppView
        * Owned by CShoppingListAppUi object.
        */
        CShoppingListAppView* iAppView;

    };

#endif // __SHOPPINGLIST_APPUI_H__

// End of File

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?