API published in: S60 1st Ed
Link against: msgeditorutils.lib
Required Capabilities
LocalServices Location NetworkControl NetworkServices ReadDeviceData ReadUserData SwEvent UserEnvironment WriteDeviceData
WriteUserData
#include <msgbiocontrol.h>
Inherits MMsgBioControl.
Public Member Functions |
|
IMPORT_C | CMsgBioControl (MMsgBioControlObserver &aObserver, CMsvSession *aSession, TMsvId aId, TMsgBioMode aEditorOrViewerMode, const RFile *aFile) |
Constructor. |
|
IMPORT_C | ~CMsgBioControl () |
Destructor. |
|
IMPORT_C TUint32 | OptionMenuPermissionsL () const |
The application can get the option menu recommendations using this function. |
|
IMPORT_C TInt | VirtualHeight () |
Gives the height of the text in pixels. |
|
IMPORT_C TInt | VirtualVisibleTop () |
Gives the cursor position in pixels. |
|
IMPORT_C TBool | IsCursorLocation (TMsgCursorLocation aLocation) const |
Tells whether the cursor is in the topmost or bottom position. |
|
IMPORT_C TInt | ScrollL (TInt aPixelsToScroll, TMsgScrollDirection aDirection) |
Performs the internal scrolling of control if needed. |
|
IMPORT_C void | NotifyViewEvent (TMsgViewEvent aEvent, TInt aParam) |
Prepares control for viewing. |
|
Static Public Member Functions |
|
static IMPORT_C TBool | ConfirmationQueryL (const TDesC &aText) |
Pops a confirmation query. |
|
static IMPORT_C TBool | ConfirmationQueryL (TInt aStringResource) |
Pops a confirmation query. |
|
Protected Member Functions |
|
IMPORT_C TBool | IsEditor () const |
Returns true if the control has been launched as editor, and false if it was launched as viewer. |
|
IMPORT_C TBool | IsFileBased () const |
Is the Bio Control file based or not. |
|
IMPORT_C CMsvSession & | MsvSession () const |
Accessor for MsvSession. |
|
IMPORT_C const TFileName & | FileName () const |
Deprecated*. |
|
IMPORT_C const RFile & | FileHandle () const |
Deprecated* Handle is valid only at contsruction phase!! To be removed. |
|
IMPORT_C void | LoadResourceL (const TDesC &aFile) |
Loads a resource file from /system/data/ into eikon env. |
|
IMPORT_C void | LoadResourceL (const TDesC &aFile, const TDesC &aSearchPath) |
Loads a resource file into eikon env. |
|
IMPORT_C void | LoadStandardBioResourceL () |
This loads the msgeditorutils.rsc resource, which is needed by the dialogs and notes of this class. |
|
IMPORT_C void | AddMenuItemL (CEikMenuPane &aMenuPane, TInt aStringRes, TInt aCommandOffset, TInt aPosition=0) |
Adds a menu item to the menu pane which is given as a reference. |
|
IMPORT_C TBool | NotifyEditorViewL (TMsgBioControlEventRequest aRequest, TInt aDelta=0) |
Notify editor view. |
|
IMPORT_C void | SetExtension (MMsgBioControlExtension *aExt) |
Call from base class if extension interface is supported. |
|
Protected Attributes |
|
MMsgBioControlObserver & | iBioControlObserver |
Reference to the MMsgBioControlObserver. |
|
TMsvId | iId |
Id of the message in the server. |
|
Friends |
|
class | CMsgBioBodyControl |
|
Constructor. Call this from your Bio Control constructor.
|
|
Destructor. |
|
Adds a menu item to the menu pane which is given as a reference.
|
|
Pops a confirmation query. The result is given by the return value. The standard resource must have been loaded using LoadStandardBioResourceL(). Your resource must also be loaded, for eg. with LoadResourceL(). CCoeEnv must exist.
|
|
Pops a confirmation query. The result is given by the return value. The standard resource must have been loaded using LoadStandardBioResourceL().
|
|
Deprecated* Handle is valid only at contsruction phase!! To be removed. Returns input file handle.
|
|
Deprecated*. Returns name of input file.
|
|
Tells whether the cursor is in the topmost or bottom position. It is used by the scrolling framework.
Implements MMsgBioControl. |
|
Returns true if the control has been launched as editor, and false if it was launched as viewer.
|
|
Is the Bio Control file based or not.
|
|
Loads a resource file into eikon env. The resources are unloaded in the destructor of this class. (the offsets are kept in iResourceOffsets).
|
|
Loads a resource file from /system/data/ into eikon env. This function should be used for loading the Bio Control resources. The resources are unloaded in the destructor of this class. The offsets are kept in iResourceOffsets.
|
|
This loads the msgeditorutils.rsc resource, which is needed by the dialogs and notes of this class. |
|
Accessor for MsvSession. The session exists only if the Bio Control has been created as message server based.
|
|
Notify editor view. This is used by the Bio Control for notifying the Editor Base framework of an event, and usually for requesting something to be done. |
|
Prepares control for viewing.
|
|
The application can get the option menu recommendations using this function. The function comes from MMsgBioControl. This is the default implementation which returns the flags EMsgBioCallBack | EMsgBioDelete | EMsgBioMessInfo | EMsgBioMove | EMsgBioCreateCC | EMsgBioSend | EMsgBioAddRecipient | EMsgBioSave | EMsgBioSendingOpt | EMsgBioHelp | EMsgBioExit. Bio Controls should override this if it is not ok.
Implements MMsgBioControl. |
|
Performs the internal scrolling of control if needed. Default implementation does not perform any scrolling and returns that zero pixels were scrolled.
|
|
Call from base class if extension interface is supported.
|
|
Gives the height of the text in pixels. It is used by the scrolling framework.
Implements MMsgBioControl. |
|
Gives the cursor position in pixels. It is used by the scrolling framework.
Implements MMsgBioControl. |
|
|
Reference to the MMsgBioControlObserver. |
|
Id of the message in the server. |