📄 mmsdemo1appui.h
字号:
/*
* ============================================================================
* Name : CMMSDemo1AppUi from MMSDemo1AppUi.h
* Part of : MMSDemo1
* Created : 28.10.2002 by Forum Nokia
* Description:
* Declares UI class for application.
* Version :
* Copyright: Nokia Corp. 2003
* ============================================================================
*/
#ifndef MMSDEMO1APPUI_H
#define MMSDEMO1APPUI_H
// INCLUDES
#if !defined(__EIKAPP_H__)
#include <eikapp.h>
#endif
#if !defined(__EIKDOC_H__)
#include <eikdoc.h>
#endif
#if !defined(__E32STD_H__)
#include <e32std.h>
#endif
#if !defined(__COECCNTX_H__)
#include <coeccntx.h>
#endif
#if !defined(__AKNVIEWAPPUI_H__)
#include <aknviewappui.h>
#endif
#if !defined(__AKNTABGRP_H__)
#include <akntabgrp.h>
#endif
#if !defined(__AKNNAVIDE_H__)
#include <aknnavide.h>
#endif
#if !defined(__MSVSTD_H__)
#include <msvstd.h> // for TMsvId
#endif
#include "MmsDemo1.hrh" // own constants
// FORWARD DECLARATIONS
class CMMSDemo1MainContainer;
class CMMSDemo1Engine;
class CMMSDemo1Form;
// CONSTANTS
// CLASS DECLARATION
/**
* Application UI class.
* Provides support for the following features:
* - EIKON control architecture
* - view architecture
* - status pane
*
*/
class CMMSDemo1AppUi : public CAknAppUi
{
public: // Constructors and destructor
/**
* EPOC default constructor.
*/
void ConstructL();
/**
* Destructor.
*/
~CMMSDemo1AppUi();
/**
* From CEikAppUi, takes care of command handling.
* @param aCommand command to be handled
*/
void HandleCommandL(TInt aCommand);
// Method to open a file (attachment) passed
// in by a caller application when opening a .WAD extension
void OpenFileL(const TDesC& aFileName);
private:
// From MEikMenuObserver
void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
private: // New functions
//
// Read all MMS messages in a given folder
void ReadMessagesL(TMsvId aFolder);
//
// Reading is done in 2 phases and this method completes
// this "operation".
TMsvId CompleteReadL();
//
// Lets user select and delete messages from a folder
void DeleteMessagesL(TMsvId aFolder);
//
// Lets user select and open a message
void OpenMessageL();
//
// Start writing a new message data
// (actual message entry is created just before sending)
void WriteMessageL();
//
// Create a reply to a message (current)
void ReplyL();
//
// Create a forward to a message (current)
void ForwardL();
//
// Create message (if not yet created) and send
void SendMessageL();
//
// When opening messages etc. local descriptors and UI fields
// are being updated here.
void UpdateDescriptorsL();
private:
/**
* From CEikAppUi, 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);
private: // Data
CMMSDemo1Form* iForm; // message editor/viewer form
CMMSDemo1Engine* iMmsEngine;
CMsvEntrySelection* iSelection; // storage class for reading messages
TMsvId iMsgId; // current message identifier
TInt iFunctionId; // for passing id of the function-to-call after read operation
TBool iListOpen; // flag that tells that the msg selection list is open
TBool iForward; // Status of this flag is checked when sending a message
TBool iReply; // Status of this flag is checked when sending a message
TBool iMessageOpen; // flag that is true if a message has been opened
TInt iListIndex; // index used to get selection info from the user
TInt iFormReply; // To keep track which button was pressed
// on the selection list.
CMMSDemo1MainContainer* iContainer; // UI container (used when opening message as embedded from
// the Messaging application)
// data field storage
TBuf<EMMSDemo1EdwinMaxLength> iUrl;
TBuf<EMMSDemo1EdwinMaxLength> iDesc;
TBuf<EMMSDemo1EdwinMaxLength> iTo;
TBuf<EMMSDemo1EdwinMaxLength> iCc;
// UI stuff
CAknNavigationControlContainer* iNaviPane;
CAknNavigationDecorator* iNaviDecorator;
// true if app was opened as embedded upon the Messaging app.
TBool iEmbedded;
};
#endif
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -