📄 cmmslappui.h
字号:
/* Copyright (c) 2003, Nokia. All rights reserved */
#ifndef __CMMSLAPPUI_H__
#define __CMMSLAPPUI_H__
// INCLUDES
#include <eikapp.h>
#include <eikdoc.h>
#include <e32std.h>
#include <coeccntx.h>
#include <aknviewappui.h>
#include <akntabgrp.h>
#include <aknnavide.h>
#include "MMmslSessionClosed.h"
#include "MMmslObsInterface.h"
#include "CMmslModel.h"
// FORWARD DECLARATIONS
class CMmslContainer;
class CMmslController;
class CMmslDialog;
// CLASS DECLARATION
/**
* Application UI class.
* Provides support for the following features:
* - EIKON control architecture
* This class implements the MMmslSessionClosed interface.
*
*/
class CMmslAppUi : public CAknAppUi, public MMmslSessionClosed
{
public: // Constructors and destructor
/**
* CMmslAppUi
* Constructor.
*/
CMmslAppUi();
/**
* ~CMmslAppUi
* Destructor is always virtual.
*/
virtual ~CMmslAppUi();
/**
* ConstructL
* Default constructor.
*/
void ConstructL();
/**
* Model
* Used by CMmslContainer object to forward the Model
* to the ListBox.
* @return The model
*/
CMmslModel* Model();
/**
* ViewDialogL
* Displays and handles the message view dialog. Called from
* HandleCommandL when user selects View from menu
* and from HandleListBoxEvent in CMmslContainer when user
* clicks on an item of the ListBox.
*/
void ViewDialogL();
/**
* DeleteDialogL
* Displays and handles the delete dialog. Called from
* HandleCommandL when user selects delete from menu.
*/
void DeleteDialogL();
/**
* From MMmslSessionClosed,ServerDown
* Displays error message
* and exits the program. Called from CMmslController
* after Msv session connection error.
* @param aReason error number
*/
void ServerDown( TInt aReason );
private:
/**
* From CEikAppUi,HandleCommandL
* Takes care of command handling.
* @param aCommand command to be handled
*/
void HandleCommandL( TInt aCommand );
/**
* From CEikAppUi,HandleKeyEventL
* Handles key events.
* @param aKeyEvent Event to handled
* @param aType Type of the key event
* @return Response code (EKeyWasConsumed, EKeyWasNotConsumed).
*/
virtual TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent,
TEventCode aType );
/**
* ShowDeleteConfirmationQueryL
* Shows delete mms confirmation query.
* @param aTextResourceId ID number for resource
* @return ETrue, if user wants delete the mms
*/
TBool ShowDeleteConfirmationQueryL( const TInt aTextResourceId );
private: //Data
/**
* Pointer to container.
* Owned by this object.
*/
CMmslContainer* iContainer;
/**
* Pointer to Message Server Observer.
* Owned by this object.
*/
MMmslObsInterface* iMsgMonitor;
};
#endif // __CMMSLAPPUI_H__
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -