/* Machine-made version of this file copyright (c) 2005 Somusar */ /* Derived from samples that are Copyright (c) 2004, Nokia. All rights reserved */ #ifndef _THREEFORMSVIEW_H__ #define _THREEFORMSVIEW_H__ // INCLUDES #include #include #include // CONSTANTS const TUid KViewId = { 1 }; // UID of view const TInt KThreeFormsTitleBufLength = 256; const TInt KThreeFormsResourceIdInitialize = 0; const TInt KThreeFormsLabelBufLength = 256; // FORWARD DECLARATIONS class CThreeFormsContainer; // CLASS DECLARATION /** * CThreeFormsView view class. * */ class CThreeFormsView : public CAknView { public: // Constructors and destructor /** * CThreeFormsView * Default constructor. */ CThreeFormsView(); /** * ConstructL * Symbian constructor. */ void ConstructL(); /** * ~CThreeFormsView * Destructor. */ virtual ~CThreeFormsView(); public: // New functions /** * DisplayNextOutlineL * @param aIndex */ void DisplayNextOutlineL(); public: // From CAknView. /** * From CAknView, Id. * Returns the ID of view. * @return The ID of view. */ TUid Id() const; /** * From CAknView, HandleCommandL. * handles the commands. if the command is command which is require to * display outline-screen, the command is reported to container class. * @param aCommand Command to be handled. */ void HandleCommandL( TInt aCommand ); private: // New functions /** * IndicateTitlePaneTextL * Set title text to status-pane * @param aCommand */ void IndicateTitlePaneTextL( TInt aCommand ); private: // From CAknView /** * From CAknView, DoActivateL. * Creates the Container class object. * @param aPrevViewId aPrevViewId is not used. * @param aCustomMessageId aCustomMessageId is not used. * @param aCustomMessage aCustomMessage is not used. */ void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage ); /** * From CAknView, DoDeactivate. * Deletes the Container class object. */ void DoDeactivate(); private: // Data /** * iContainer * Owned by CThreeFormsView object. */ CThreeFormsContainer* iContainer; /** * iCurrentOutline */ TInt iCurrentOutline; }; /** * CThreeFormsAdd container control class. */ class CThreeFormsAdd : public CAknForm { public: // Constructor and Detructor /** * CThreeFormsAdd * Default constructor. */ CThreeFormsAdd(); /** * ~CThreeFormsAdd * Destructor. */ virtual ~CThreeFormsAdd(); protected: /** * From CAknForm, AddItemL * Add item for testing uses customised dialog. */ void AddItemL(); private: /** * iNewItemId * In order to prevent adding controls which ID is the same. */ TInt iNewItemId; }; #endif // _THREEFORMSVIEW_H__ // End of File