SophiaFramework UNIVERSE 5.3 |
BREW 2.0 | BREW 2.1 | BREW 3.1 | BREW 4.0 |
---|---|---|---|
O | O | O | O |
Public Functions | |
---|---|
SFCError |
ClearData(
ACharConstPtr format
)
Remove all data in specified format from the clipboard.
|
SFCError |
ClearData(
SFXAnsiStringConstRef format
)
Remove all data in specified format from the clipboard.
|
SFCError |
Empty( Void )
Remove all data in all formats from the clipboard.
|
Bool |
EnumInit( Void )
Initialize the enumeration context for the formats in the clipboard.
|
Bool |
EnumNext(
CBItemInfo* itemInfo
)
Return the next available/registered clipboard format.
|
SFCError |
GetData(
ACharConstPtr format
, VoidPtr data
, SInt32Ptr size
)
Copy clipboard data for the specified clipboard format to the destination buffer.
|
SFCError |
GetData(
ACharConstPtr format
, SFXBufferPtr data
)
Copy clipboard data for the specified clipboard format to the destination buffer.
|
SFCError |
GetData(
SFXAnsiStringConstRef format
, VoidPtr data
, SInt32Ptr size
)
Copy clipboard data for the specified clipboard format to the destination buffer.
|
SFCError |
GetData(
SFXAnsiStringConstRef format
, SFXBufferPtr data
)
Copy clipboard data for the specified clipboard format to the destination buffer.
|
UInt32 |
GetSequence( Void )
Return the sequence number of the clipboard.
|
UInt32 |
MaxFreeBlock(
UInt32Ptr total = null
, UInt32Ptr used = null
)
Return the maximum free block size.
Fills pointers to the total size (in bytes) and total used size (in bytes) of the clipboard.
|
static SFBClipboardSmp |
NewInstance(
SFCErrorPtr exception = null
)
Create a new SFBClipboard instance.
|
static SFBClipboardSmp |
NewInstance(
AEECLSID id
, SFCErrorPtr exception = null
)
Create a new SFBClipboard instance.
|
SFCError |
SetData(
ACharConstPtr format
, VoidPtr data
, SInt32 size
)
Set the data for a clipboard format.
|
SFCError |
SetData(
ACharConstPtr format
, SFXBufferPtr data
)
Set the data for a clipboard format.
|
SFCError |
SetData(
SFXAnsiStringConstRef format
, VoidPtr data
, SInt32 size
)
Set the data for a clipboard format.
|
SFCError |
SetData(
SFXAnsiStringConstRef format
, SFXBufferPtr data
)
Set the data for a clipboard format.
|
Protected Functions | |
---|---|
static SFBBaseSmp |
FactoryByCreate(
AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface.
|
static SFBBaseSmp |
FactoryByQuery(
SFBQuerySmpConstRef query
, AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface using the SFBQuery instance.
|
[ public ] SFCError ClearData( ACharConstPtr format // format name );
[ public ] SFCError ClearData( SFXAnsiStringConstRef format // format name );
[ public ] SFCError Empty(Void);
[ public ] Bool EnumInit(Void);
[ public ] Bool EnumNext( CBItemInfo* itemInfo );
Pointer to item information to fill. Before calling this function, the members pszName and nNameLen members of the pci parameter (that is, CBItemInfo struct) must be set properly. On return, pszName will contain the name of the format and nDataSize will contain the actual size of the data. On input: itemInfo -> pszName must be a valid pointer capable of holding a string. itemInfo -> nNameLen specifies the size (in bytes) that the pointer itemInfo -> pszName can hold. On Return: itemInfo -> pszName contains the format name. itemInfo -> nDataLen contains the size of the data in the clipboard for this format.
[ public ] SFCError GetData( ACharConstPtr format // name of the format VoidPtr data // pointer to destination data buffer SInt32Ptr size // input size of destination buffer and output size copied );
[ public ] SFCError GetData( ACharConstPtr format // name of the format SFXBufferPtr data // pointer to destination data buffer. // size is automatically set to output size copied );
[ public ] SFCError GetData( SFXAnsiStringConstRef format // name of the format VoidPtr data // pointer to destination data buffer SInt32Ptr size // input size of destination buffer and output size copied );
[ public ] SFCError GetData( SFXAnsiStringConstRef format // name of the format SFXBufferPtr data // pointer to destination data buffer. // size is automatically set to output size copied );
Warning: Buffer size is limited to the maximum value of SInt32.
[ public ] UInt32 GetSequence(Void);
This function is provided to allow the caller to determine if the clipboard has been updated. Updates to the clipboard include the addition of data. The sequence number is only counted up on data addition. Data removal has no effect on the sequence number. The sequence number resets when BREW exits; that is, when the handset is power-cycled.
[ public ] UInt32 MaxFreeBlock( UInt32Ptr total = null // pointer to fill with total size in bytes of the clipboard memory (if non-null) UInt32Ptr used = null // pointer to fill with total space used in clipboard (if non-null) );
[ public, static ] SFBClipboardSmp NewInstance( SFCErrorPtr exception = null // Error );
[ public, static ] SFBClipboardSmp NewInstance( AEECLSID id // Class ID SFCErrorPtr exception = null // Error );
[ public ] SFCError SetData( ACharConstPtr format // format name VoidPtr data // data pointer SInt32 size // size of data object );
[ public ] SFCError SetData( ACharConstPtr format // format name SFXBufferPtr data // when null, null and 0 are sent as parameter );
[ public ] SFCError SetData( SFXAnsiStringConstRef format // format name VoidPtr data // data pointer SInt32 size // size of data object );
[ public ] SFCError SetData( SFXAnsiStringConstRef format // format name SFXBufferPtr data // when null, null and 0 are sent as parameter );
Because clipboard data can live beyond the life of an application, this function allocates new memory and copies the contents into a new buffer.
Note | |
---|---|
Passing a null pointer or a size of 0 frees existing clipboard data. The clipboard can contain only single data for a certain format name. Data already associated with the format is released. |
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |