www.pudn.com > ExeLauncher.zip > ExeLauncherContainer.h
/* * ============================================================================ * 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#include #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 iText1; TBuf iText2; TBuf 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