class CClipboard : public CBase |
Clipboard. A repository of copied data which is available for pasting. The clipboard storage drive is defined in the HAL layer, in HAL::EClipboardDrive .
Public Member Functions | |
---|---|
~CClipboard () | |
IMPORT_C TInt | Clear ( RFs &) |
IMPORT_C TDriveName | ClipboardFileDrive () |
IMPORT_C void | CommitL () |
IMPORT_C void | CopyToL ( TReal ) |
IMPORT_C CClipboard * | NewForReadingL ( RFs &) |
IMPORT_C CClipboard * | NewForReadingLC ( RFs &) |
IMPORT_C CClipboard * | NewForWritingLC ( RFs &) |
IMPORT_C TBool | PasteFromL ( TReal &) |
CStreamStore & | Store () |
CStreamDictionary & | StreamDictionary () |
Private Member Functions | |
---|---|
CClipboard ( RFs &) | |
void | ConstructReadL () |
CClipboard * | NewLC ( RFs &) |
Private Attributes | |
---|---|
RFs & | iFs |
CFileStore * | iStore |
CStreamDictionary * | iStreamDictionary |
IMPORT_C | ~CClipboard | ( | ) |
Destructor. Frees all resources owned by the object, prior to its destruction. In particular, the file associated with the clipboard's store is closed.
Note that if the clipboard file store has no root stream, i.e. the CommitL() member function of CClipboard has not been called prior to deleting the CClipboard object, then the file associated with the clipboard file store is deleted.
IMPORT_C TInt | Clear | ( | RFs & | aFs | ) | [static] |
Empties the clipboard.
Note that if the file associated with the clipboard's store does not exist, this is not regarded as an error and the function completes successfully.
RFs & aFs | A handle to a file server session. |
IMPORT_C TDriveName | ClipboardFileDrive | ( | ) | [static] |
Returns the clipboad file drive information stored in the TLS
IMPORT_C void | CommitL | ( | ) |
Commits changes to the clipboard's store.
It externalises the stream dictionary to the clipboard store as the root stream and then commits all changes to the store. This function must be called after application data has been externalised; failure to do so results in the deletion of the file associated with the clipboard store and the loss of data.
IMPORT_C void | CopyToL | ( | TReal | aReal | ) |
Copies a double-precision floating point value to the clipboard.
Note that the function does not automatically commit changes to the clipboard's store. This must be done explicitly.
TReal aReal | The double-precision floating point value to be copied to the clipboard. |
IMPORT_C CClipboard * | NewForReadingL | ( | RFs & | aFs | ) | [static] |
Constructs a clipboard object and prepares the clipboard's store for reading.
RFs & aFs | A handle to a file server session. |
IMPORT_C CClipboard * | NewForReadingLC | ( | RFs & | aFs | ) | [static] |
Constructs a clipboard object and prepares the clipboard's store for reading, placing a pointer to the object on the cleanup stack. This allows the object and allocated resources to be cleaned up if a subsequent leave occurs.
RFs & aFs | A handle to a file server session. |
IMPORT_C CClipboard * | NewForWritingLC | ( | RFs & | aFs | ) | [static] |
Constructs a clipboard object and prepares the clipboard's store for writing.
If the file associated with the clipboard's store does not exist, it is created; if it already exists, any existing content is discarded.
RFs & aFs | A handle to a file server session. |
IMPORT_C TBool | PasteFromL | ( | TReal & | aReal | ) |
Pastes a double-precision floating point value from the clipboard.
If a double-precision floating point value exists on the clipboard, then the function restores it to the referenced argument and returns a true value.
If there is no double-precision floating point value on the clipboard, then the function returns a false value. The referenced argument is not changed.
TReal & aReal | On return, contains the double-precision floating point value found on the clipboard. |
CStreamDictionary & | StreamDictionary | ( | ) | const [inline] |
Returns a reference to the clipboard's stream dictionary.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.