socketsappui.h
来自「国内著名嵌入式培训机构内部资料,内含一些实例代码,包括技术专题书籍」· C头文件 代码 · 共 96 行
H
96 行
/* Copyright (c) 2004, Nokia. All rights reserved */
#ifndef __SOCKETSAPPUI_H__
#define __SOCKETSAPPUI_H__
// INCLUDES
#include <aknviewappui.h>
#include "ImMsgEngine.h"
#include "ImMsg.h"
#include "ImUserLoginView.h"
#include "ImFriendListView.h"
#include "ImChatRecordView.h"
// FORWARD DECLARATIONS
class CSocketsEngine;
// CLASS DECLARATION
/**
* CSocketsAppUi
* An instance of class CSocketsAppUi is the UserInterface part of the AVKON
* application framework for the Sockets example application.
*/
class CSocketsAppUi : public CAknViewAppUi,public MImMsgEngineObserver
{
public: // Constructors and destructors
/**
* CSocketsAppUi.
* C++ default constructor. This needs to be public due to
* the way the framework constructs the AppUi.
*/
CSocketsAppUi();
/**
* ~CSocketsAppUi.
* Destructor.
* Destroys the object and release all memory objects.
*/
virtual ~CSocketsAppUi();
public: // Functions from base classes
void SendImMessage(CImMsg* pImMsg);
/**
* From MEikMenuPaneObserver, DynInitMenuPaneL.
* Initialises a menu pane before it is displayed.
* @param aMenuId Id of menu.
* @param aMenuPane Handle for menu pane.
*/
void DynInitMenuPaneL( TInt aMenuId, CEikMenuPane* aMenuPane );
private: // Constructors and destructors
/**
* ConstructL.
* 2nd phase constructor.
*/
void ConstructL();
private: // Functions from base classes
/**
* From CEikAppUi, HandleCommandL.
* Handles user menu selections.
* @param aCommand The enumerated code for the option selected.
*/
void HandleCommandL( TInt aCommand );
/**
* From CEikAppUi, HandleKeyEventL.
* Handles user key input.
* @param aKeyEvent event information
* @param aType event type
* @return EKeyWasConsumed
*/
TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent,
TEventCode aType );
void HandleImMessage(CImMsg* pMsg);
public: // Data
CImUserLoginView* m_viewUserLogin;
CImFriendListView* m_viewFriendList;
CImChatRecordView* m_viewChatRecord;
CImMsgEngine* iImMsgEngine;
CSocketsEngine* iSocketsEngine;
TBuf<10> m_bufMyAcc;
};
#endif // __SOCKETSAPPUI_H__
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?