📄 mmmslobsinterface.h
字号:
/* Copyright (c) 2003, Nokia. All rights reserved */
#ifndef __MMMSLOBSINTERFACE_H__
#define __MMMSLOBSINTERFACE_H__
#include <e32def.h>
#include <badesca.h>
#include "CMmslModel.h"
#include "CMmslContainer.h"
/**
* Definitions of the interface between the mmslist environemnt
* and the individual observer that are plugged to the mmslist.
*
* The observer offers the methods of the following MMmslObsInterface
* interface (and in addition, the usual constructon / destruction pattern)
*
*/
class MMmslObsInterface
{
public:
/**
* DeleteItemL
* Delete mms from Inbox.
* @param aItem Listbox item
* @return KErrNone otherwise the return value is considered an error
*/
virtual TInt DeleteItemL( const TDesC& aItem ) = 0;
/**
* ReScanAllL
* Scan all messages in the Inbox.
* @return Number of items added (or deleted if negative),
* 0 if no changes occurred.
*/
virtual TInt ReScanAllL() = 0;
/**
* Model
* @return Model assosiated with this observer
*/
virtual CMmslModel* Model() = 0;
/**
* SetContainer
* Assosiate container with observer.
* @param aContainer The container associated with this observer
*/
virtual void SetContainer( CMmslContainer* aContainer ) = 0;
/**
* GetSenderL
* Find sender phonenumber from mms.
* @param aItem, listbox item
* @param aSender, sender info is set by method
*/
virtual void GetSenderL( const TDesC& aItem, TDes& aSender ) const = 0;
/**
* GetMessageL
* Find message text
* @param aItem Listbox item
* @param aMessageText Text of message is set by method
*/
virtual void GetMessageL( const TDesC& aItem,
TDes& aMessageText ) const = 0;
};
#endif // __MMMSLOBSINTERFACE_H__
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -