aknexquerygloballistobserver.h

来自「symbian ui的 例子 初学者可以 好好看看,这个是培训的资料,应该比较宝」· C头文件 代码 · 共 111 行

H
111
字号
/*
* ==============================================================================
*  Name        : aknexquerygloballistobserver.h
*  Part of     : Query example
*  Interface   :
*  Description :
*  Version     :
*
*  Copyright (c) 2004 - 2006 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ==============================================================================
*/

#ifndef __AKNEXQUERYGLOBALLISTOBSERVER_H__
#define __AKNEXQUERYGLOBALLISTOBSERVER_H__

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <AknGlobalListQuery.h>
//#include "AknExQueryContainer.h"

// FORWARD DECLARATIONS
class CAknExQueryContainer;

// CLASS DECLARATION

/**
* CAknExQueryGlobalListObserver class
*/
class CAknExQueryGlobalListObserver:
    public CActive
    {
    public:  // Constructors and destructor
        /**
        * NewL
        * Two-phased constructor.
        */
        static CAknExQueryGlobalListObserver* NewL( 
                                            CAknExQueryContainer* aContainer );

        /**
        * ~CAknExQueryGlobalListObserver
        * Destructor.
        */
        virtual ~CAknExQueryGlobalListObserver();

    public:     // New function
        /**
        * Start
        * Start the activator.
        */
        void Start();

        /*
        * SetSelectItemFlag
        * Set iSelectItemFlag.
        */
        void SetSelectItemFlag();

        /*
        * UnsetSelectItemFlag
        * Unset iSelectItemFlag.
        */
        void UnsetSelectItemFlag();

    private:    // New function
        /**
        * CAknExQueryGlobalListObserver
        * C++ default constructor.
        */
        CAknExQueryGlobalListObserver( CAknExQueryContainer* aContainer );

        /**
        * ConstructL
        * Symbian default constructor.
        */
        void ConstructL();

    private:    // From CActive
        /**
        * RunL
        * From CActive, handle an event.
        */
        void RunL();

        /**
        * DoCancel
        * From CActive, implement the Cancel protocol.
        */
        void DoCancel();
        
    private: // Data
        /**
        * iContainer, container class.
        * Does not own.
        */
        CAknExQueryContainer* iContainer;

        /**
        * iSelectItemFlag
        */
        TBool                 iSelectItemFlag;
    };

#endif // __AKNEXQUERYGLOBALLISTOBSERVER_H__

// End of File

⌨️ 快捷键说明

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