⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aknexquerycontainer.h

📁 symbian中询问对话框生成的源代码 适合初学者使用。
💻 H
📖 第 1 页 / 共 2 页
字号:
        * Call CAknQueryDialog::RunDlgLD and it tests.
        *  @param aResourceId for dialog
        */
        void DoRunDlgL( TInt aResourceId );

        /**
        * DoSetItemTextArrayL
        * Call CAknListQueryDialog::SetItemTextArrayL and it tests.
        */
        void DoSetItemTextArrayL();

        /**
        * DoSetIconArrayL
        * Call CAknListQueryDialog::SetIconArrayL and it tests.
        */
        void DoSetIconArrayL();

        /**
        * DeleteTimer
        * Delete timer.
        */
        void DeleteTimer(); 

        /**
        * ShowCodeQueryL
        * Show Code Query.
        */
        void ShowCodeQueryL( const TInt aLength = 0, TDesC* aDefaulText = NULL );

        /**
        * DoCancelPopUp
        * Cancel PopUp
        */
        void DoCancelPopUp();

        /**
        * ShowGlobalListQueryL
		* The function for the test of the following three APIs.
        * MoveSelectionUp, MoveSelectionDown, SelectItem.
        */
        void ShowGlobalListQueryL( const TTimerUpdateType& aUpdateType );

        /**
        * DataLayoutFromControlByLayoutOrNull
        * Control can be acquired from 
		* ControlByLayoutOrNull about data layout, 
		* and  it tests.
        */
        void DataLayoutFromControlByLayoutOrNull();

        /**
        * StaticSizeDataLayoutFromControlByLayoutOrNull
        * Control can be acquired from 
		* ControlByLayoutOrNull about StaticSizeDat layout, 
		* and  it tests.
        */
        void StaticSizeDataLayoutFromControlByLayoutOrNull();

        /**
        * PhoneLayoutFromControlByLayoutOrNull
        * Control can be acquired from 
		* ControlByLayoutOrNull about Phone layout, 
		* and  it tests.
        */
        void PhoneLayoutFromControlByLayoutOrNull();

        /**
        * CodeLayoutFromControlByLayoutOrNull
        * Control can be acquired from 
		* ControlByLayoutOrNull about Code layout, 
		* and  it tests.
        */
        void CodeLayoutFromControlByLayoutOrNull();

        /**
        * DateLayoutFromControlByLayoutOrNull
        * Control can be acquired from 
		* ControlByLayoutOrNull about Date layout, 
		* and  it tests.
        */
        void DateLayoutFromControlByLayoutOrNull();

        /**
        * TimeLayoutFromControlByLayoutOrNull
        * Control can be acquired from 
		* ControlByLayoutOrNull about Time layout, 
		* and  it tests.
        */
        void TimeLayoutFromControlByLayoutOrNull();

        /**
        * DurationLayoutFromControlByLayoutOrNull
        * Control can be acquired from 
		* ControlByLayoutOrNull about Duration layout, 
		* and  it tests.
        */
        void DurationLayoutFromControlByLayoutOrNull();

        /**
        * NumberLayoutFromControlByLayoutOrNull
        * Control can be acquired from 
		* ControlByLayoutOrNull about Number layout, 
		* and  it tests.
        */
        void NumberLayoutFromControlByLayoutOrNull();

        /**
        * PinLayoutFromControlByLayoutOrNull
        * Control can be acquired from 
		* ControlByLayoutOrNull about Pin layout, 
		* and  it tests.
        */
        void PinLayoutFromControlByLayoutOrNull();

        /**
        * DoRemoveEditorIndicator
		* Call RemoveEditorIndicator and it tests.
        */
        void DoRemoveEditorIndicator();

        /**
        * SetImageL
        * set image of confirmation query
        */
        void SetImageL();

        /**
        * SetAnimationL
        * set animation of confirmation query
        */
        void SetAnimationL();

        /**
        * SetAndCancelAnimationL
        * set and animation
        */
        void SetAndCancelAnimationL();

        /**
        * ChangeMaxHightL
        * Change maximum height of pop-up list
        */
        void ChangeMaxHightL();

		/**
        * ShowDeleteConfirmationQueryL
		* Show Delete Confirmation Query
		*/
		void ShowDeleteConfirmationQueryL();

    public: // From CCoeControl

        /**
        * From CCoeControl, OfferKeyEventL.
        * Handles the key events.
        * @return if key-event is consumed, EKeyWasConsumed.
        *   Else EKeyWasNotConsumed
        * @param aKeyEvent Key event
        * @param aType Type of key event ( EEventKey, EEventKeyUp or
        *   EEventKeyDown )
        */
        TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,
                                     TEventCode aType );

    private: // From CCoeControl

        /**
        * From CCoeControl, SizeChanged.
        *
        */
        void SizeChanged();

        /**
        * From CCoeControl, CountComponentControls.
        * Returns number of component.
        * @return Number of controls
        */
        TInt CountComponentControls() const;

        /**
        * From CCoeControl, ComponentControl.
        * Returns pointer to particular component.
        * @return Pointer to Control's component control, identified by index
        * @param aIndex Index of the control
        */
        CCoeControl* ComponentControl( TInt aIndex ) const;

        /**
        * From CCoeControl, Draw.
        * @param aRect Region of the control to be ( re )drawn.
        */
        void Draw( const TRect& aRect ) const;

    private: //New Function

        /**
        * ShowResultMessageL
        * Show Result Message.
        * @param aResult
        */
        void ShowResultMessageL( TBool aResult );

        /**
        * TimerCallbackL
        * Timer methods
        * @param aThis
        */
	    static TInt TimerCallbackL( TAny* aThis );

        /**
        * ProcessTimerEventL
        */
        void ProcessTimerEventL();

        /**
        * StartTimerL
        * @param aStart
        * @param aInterval
        * @param aUpdateType
        */
        void StartTimerL( TInt aStart, 
                        TInt aInterval, 
                        const TTimerUpdateType& aUpdateType );

        /**
        * SetIconL
        * @param aDlg
        * @param aBitmap
        * @param aMask
        */
        void SetIconL( CAknQueryDialog* aDlg, TInt32 aBitmap, TInt32 aMask );

    private: // Data

        /**
        * iLabel
        * Owned by CAknExQueryContainer object.
        */
        CEikLabel*                          iLabel;

        /**
        * iLabelResultMessage
        * Owned by CAknExQueryContainer object.
        */
        CEikLabel*                          iLabelResultMessage;

        /**
        * iView
        * Does not own
        */
        CAknExQueryView*                    iView;

        /**
        * iListBox
        * Owned by CAknExQueryContainer object.
        */
        CEikColumnListBox*                  iListBox;

        /**
        * iHandler
        * Owned by CAknExQueryContainer object.
        */
        CAknExQueryBaseListEventHandler*    iHandler;

        /**
        * iDisplayDialog, boolean for Display Dialog
        */
        TBool                               iDisplayDialog;

        /**
        * iGlobalListQuery
        * Owned by CAknExQueryContainer object.
        */
        CAknGlobalListQuery*                iGlobalListQuery;
        /**
        * iGlobalListObserver
        * Owned by CAknExQueryContainer object.
        */
        CAknExQueryGlobalListObserver*      iGlobalListObserver;
        /**
        * iGlobalMsgQuery
        * Owned by CAknExQueryContainer object.
        */
        CAknGlobalMsgQuery*                 iGlobalMsgQuery;

        /**
        * iQueryDialog
        * Owned by CAknExQueryContainer object.
        */
        CAknQueryDialog*                    iQueryDialog;
        /**
        * iTimerUpdateType 
        */
        TTimerUpdateType                    iTimerUpdateType;
        /**
        * iTimer, Timer Object 
        * Owned by CAknExQueryContainer object.
        */
        CPeriodic*                          iTimer;
        /**
        * iPopupList, Popup list
        * Owned by CAknExQueryContainer object.
        */
        CAknPopupList*                      iPopupList;

        /**
        * iTextData 
        */
		TBuf<KAknExQueryTextBufLength>      iTextData;

    };

#endif // __AKNEXQUERYCONTAINER_H__

// End of File

⌨️ 快捷键说明

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