/* Machine-made version of this file copyright (c) 2005 Somusar */ /* Derived from samples that are Copyright (c) 2004, Nokia. All rights reserved */ #ifndef _TWOFORMSVIEW_H__ #define _TWOFORMSVIEW_H__ // INCLUDES #include #include #include // CONSTANTS const TUid KViewId = { 1 }; // UID of view const TInt KTwoFormsTitleBufLength = 256; const TInt KTwoFormsResourceIdInitialize = 0; const TInt KTwoFormsLabelBufLength = 256; // FORWARD DECLARATIONS class CTwoFormsContainer; // CLASS DECLARATION /** * CTwoFormsView view class. * */ class CTwoFormsView : public CAknView { public: // Constructors and destructor /** * CTwoFormsView * Default constructor. */ CTwoFormsView(); /** * ConstructL * Symbian constructor. */ void ConstructL(); /** * ~CTwoFormsView * Destructor. */ virtual ~CTwoFormsView(); 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 CTwoFormsView object. */ CTwoFormsContainer* iContainer; /** * iCurrentOutline */ TInt iCurrentOutline; }; /** * CTwoFormsAdd container control class. */ class CTwoFormsAdd : public CAknForm { public: // Constructor and Detructor /** * CTwoFormsAdd * Default constructor. */ CTwoFormsAdd(); /** * ~CTwoFormsAdd * Destructor. */ virtual ~CTwoFormsAdd(); 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 // _TWOFORMSVIEW_H__ // End of File