exelaunchercontainer.h

来自「一个symbian中执行exe程序的实例」· C头文件 代码 · 共 96 行

H
96
字号
/*
* ============================================================================
*  Name     : CExeLauncherContainer from ExeLauncherContainer.h
*  Part of  : ExeLauncher
*  Created  : 01.09.2005 by Artem Marchenko
*  Description:
*     Declares container control for application.
*  Version  :
*  Copyright: Artem Marchenko 2005
* ============================================================================
*/

#ifndef EXELAUNCHERCONTAINER_H
#define EXELAUNCHERCONTAINER_H

// INCLUDES
#include <coecntrl.h>
#include <aknsettingitemlist.h> 
#include "ExeLauncher.hrh"
   
// FORWARD DECLARATIONS
class CEikLabel;        // for example labels


// CLASS DECLARATION

// Editable filenames listbox 
class CSettingItemList : public CAknSettingItemList
{
public:
	// Called by framework. Creates editors for resource definitions
	virtual CAknSettingItem* CreateSettingItemL( TInt aIdentifier );
	CSettingItemList();
private:
	// Default filenames
	TBuf<EELEdwinMaxLength>			iText1;
	TBuf<EELEdwinMaxLength>			iText2;
	TBuf<EELEdwinMaxLength>			iText3;
};

/**
*  CExeLauncherContainer  container control class.
*  
*/
class CExeLauncherContainer : public CCoeControl, MCoeControlObserver
    {
    public: // Constructors and destructor
        
        /**
        * EPOC default constructor.
        * @param aRect Frame rectangle for container.
        */
        void ConstructL(const TRect& aRect);

        /**
        * Destructor.
        */
        ~CExeLauncherContainer();

    public: // New functions
		inline CSettingItemList* FileList() { return iFileList; }

    public: // Functions from base classes

	protected:
		virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);

    private: // Functions from base classes

       /**
        * From CoeControl,CountComponentControls.
        */
        TInt CountComponentControls() const;

       /**
        * From CCoeControl,ComponentControl.
        */
        CCoeControl* ComponentControl(TInt aIndex) const;

		/**
		* From MCoeControlObserver
		* Acts upon changes in the hosted control's state. 
		*
		* @param	aControl	The control changing its state
		* @param	aEventType	The type of control event 
		*/
        void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
        
    private: //data
 		CSettingItemList* iFileList;
    };

#endif

// End of File

⌨️ 快捷键说明

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