API published in: S60 1st Ed
Link against: npdlib.lib
Required Capabilities
None
#include <npdapi.h>
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. |
|
|
Destructor. Remove a resource file of NpdLib. |
|
Save text as a memo.
|
|
Create CNotepadListDialog.
|
|
Create CNotepadModel.
|
|
Create CNotepadViewerDialog.
|
|
Create CNotepadViewerDialog.
|
|
Create CNotepadViewerDialog.
|
|
Return internal Dialog object. (Internal to NpdLib) |
|
Execute a file viewer dialog.
|
|
Execute a file viewer dialog.
|
|
Execute text viewer dialog for read only text.
|
|
Execute MCE's "List of templates".
|
|
Execute text editor dialog.
|
|
Execute text viewer dialog for editable text.
|
|
Probe a memo (API for Pinboard).
|
|
Fetch a memo. No need for a pre-allocated buffer. Return NULL if the popup list is canceled or there is no memo. Caller owns the returned HBufC object.
|
|
Fetch a template. No need for a pre-allocated buffer. Return NULL if the popup list is canceled or there is no template. Caller owns the returned HBufC object.
|
|
Return internal Model object. (Internal to NpdLib) |
|
Constructor. Add a resource file of NpdLib.
|
|
Constructor, returned value is also kept on the CleanupStack. Add a resource file of NpdLib.
|
|
Get number of templates. Return an error code (less than zero) if any trouble.
|
|
Probe a memo (API for Pinboard). This method is more efficient than ExistsMemoL when it is neccessary to probe many memos at a time.
|
|
Save contents of a specified file as a memo.
|
|
Save contents of a specified file as a memo.
|
|
Save contents of a specified file as a memo.
|
|
Save contents of a specified file as a memo.
|