CNotepadApi provides APIs for other modules.
|
Public Types |
enum | { ENpdDataEdited = 0,
ENpdDataDeleted,
ENpdDataErased
} |
Public Member Functions |
virtual IMPORT_C | ~CNotepadApi () |
| Destructor.
|
IMPORT_C CEikDialog * | Dialog () |
| Return internal Dialog object.
|
IMPORT_C CNotepadModel * | Model () |
| Return internal Model object.
|
IMPORT_C void | CreateListDialogL (TInt aResId) |
| Create CNotepadListDialog.
|
IMPORT_C void | CreateViewerDialogL (const TDesC &aFileName, const TDesC *aTitle, const TBool aDoWait, TBool aGuessEncoding=EFalse, TUint aEncoding=KCharacterSetIdentifierIso88591) |
| Create CNotepadViewerDialog.
|
IMPORT_C void | CreateViewerDialogL (RFile &aFile, const TDesC *aTitle, const TBool aDoWait, TBool aGuessEncoding=EFalse, TUint aEncoding=KCharacterSetIdentifierIso88591) |
| Create CNotepadViewerDialog.
|
IMPORT_C void | CreateViewerDialogL (const TBool aDoWait) |
| Create CNotepadViewerDialog.
|
IMPORT_C void | CreateModelL (TInt aResId) |
| Create CNotepadModel.
|
IMPORT_C TBool | ProbeMemoL (const TInt aKey) |
| Probe a memo (API for Pinboard).
|
Static Public Member Functions |
static IMPORT_C CNotepadApi * | NewL () |
| Constructor.
|
static IMPORT_C CNotepadApi * | NewLC () |
| Constructor, returned value is also kept on the CleanupStack.
|
static IMPORT_C HBufC * | FetchMemoL (const TDesC *aTitle=NULL) |
| Fetch a memo.
|
static IMPORT_C HBufC * | FetchTemplateL (const TDesC *aTitle=NULL) |
| Fetch a template.
|
static IMPORT_C TInt | ExecTemplatesL () |
| Execute MCE's "List of templates".
|
static IMPORT_C TInt | ExecFileViewerL (const TDesC &aFileName, const TDesC *aTitle=NULL, const TBool aDoWait=ETrue, TBool aGuessEncoding=EFalse, TUint aEncoding=KCharacterSetIdentifierIso88591) |
| Execute a file viewer dialog.
|
static IMPORT_C TInt | ExecFileViewerL (RFile &aFile, const TDesC *aTitle=NULL, const TBool aDoWait=ETrue, TBool aGuessEncoding=EFalse, TUint aEncoding=KCharacterSetIdentifierIso88591) |
| Execute a file viewer dialog.
|
static IMPORT_C void | AddContentL (const TDesC &aText) |
| Save text as a memo.
|
static IMPORT_C TBool | ExistsMemoL (const TInt aKey) |
| Probe a memo (API for Pinboard).
|
static IMPORT_C TInt | NumberOfTemplates () |
| Get number of templates.
|
static IMPORT_C void | SaveFileAsMemoL (const TDesC &aFileName) |
| Save contents of a specified file as a memo.
|
static IMPORT_C void | SaveFileAsMemoL (RFile &aFile) |
| Save contents of a specified file as a memo.
|
static IMPORT_C void | SaveFileAsMemoL (const TDesC &aFileName, const TUint aEncoding) |
| Save contents of a specified file as a memo.
|
static IMPORT_C void | SaveFileAsMemoL (RFile &aFile, const TUint aEncoding) |
| Save contents of a specified file as a memo.
|
static IMPORT_C TInt | ExecReadOnlyTextViewerL (const TDesC &aText, const TDesC &aTitle=KNullDesC, const TDesC &aDeleteConfirmationText=KNullDesC) |
| Execute text viewer dialog for read only text.
|
static IMPORT_C HBufC * | ExecTextViewerL (TInt &aReturnStatus, const TDesC &aText, const TDesC &aTitle=KNullDesC, const TDesC &aDeleteConfirmationText=KNullDesC) |
| Execute text viewer dialog for editable text.
|
static IMPORT_C HBufC * | ExecTextEditorL (TInt &aReturnStatus, const TDesC &aText=KNullDesC, const TDesC &aTitle=KNullDesC, const TDesC &aDeleteConfirmationText=KNullDesC) |
| Execute text editor dialog.
|