sabbermessagecontainer.h

来自「Simple Jabber Client for Symbian Platfor」· C头文件 代码 · 共 98 行

H
98
字号
/*
* ============================================================================
*  Name     : CSabberMessageContainer from SabberMessageContainer.h
*  Part of  : Sabber
*  Created  : 2004-12-9 by Xie Tian Lu
*  Description:
*     Declares container control for application.
*  Version  : 0.1
*  Copyright: (c) Xie Tian Lu Http://sabber.jabberstudio.org/
* ============================================================================
*/

#ifndef SABBERMESSAGECONTAINER_H
#define SABBERMESSAGECONTAINER_H

// INCLUDES
#include "UUListBoxContainer.h"
 
// FORWARD DECLARATIONS
class CSabberAppUi;
class CEikGlobalTextEditor;
class CMessageViewer;
// CLASS DECLARATION

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

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

    public: // New functions
		void SetAppUi( CSabberAppUi* aUi );
		TBool GetTextEditorContent( char* cont );
		void GetCurItemDest( char* dest );
		void PopupEditorbox();
		void PopoffEditorbox();
		TBool PopupViewer();
		void PopoffViewer();

    public: // Functions from base classes
		TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
		void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);

    private: // Functions from base classes

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

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

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

       /**
        * From CCoeControl,Draw.
        */
        void Draw(const TRect& aRect) const;

       /**
        * From ?base_class ?member_description
        */
        // event handling section
        // e.g Listbox events
        void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
        

    private: //data
		CSabberAppUi*			iUi;
		CEikGlobalTextEditor*	iTextEditor; // global text editor
		TBool					iEditorActive;
		CMessageViewer*			iMessageViewer;
		TBool					iViewerActive;
    };

#endif

// End of File

⌨️ 快捷键说明

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