#include <scim_socket_transaction.h>
Public Member Functions | |
SocketTransaction (size_t bufsize=512) | |
~SocketTransaction () | |
bool | valid () const |
bool | write_to_socket (const Socket &socket, uint32 signature=0) const |
bool | read_from_socket (const Socket &socket, int timeout=-1) |
void | put_command (int type) |
void | put_data (uint32 val) |
void | put_data (const String &str) |
void | put_data (const WideString &str) |
void | put_data (const KeyEvent &key) |
void | put_data (const AttributeList &attrs) |
void | put_data (const LookupTable &table) |
void | put_data (const std::vector< uint32 > &vec) |
void | put_data (const std::vector< String > &vec) |
void | put_data (const std::vector< WideString > &vec) |
void | put_data (const char *raw, size_t bufsize) |
SocketTransactionDataType | get_data_type () const |
bool | get_command (int &type) |
bool | get_data (uint32 &val) |
bool | get_data (String &str) |
bool | get_data (WideString &str) |
bool | get_data (KeyEvent &key) |
bool | get_data (AttributeList &attrs) |
bool | get_data (CommonLookupTable &table) |
bool | get_data (std::vector< uint32 > &vec) |
bool | get_data (std::vector< String > &vec) |
bool | get_data (std::vector< WideString > &vec) |
bool | get_data (char **raw, size_t &bufsize) |
bool | skip_data () |
void | rewind_read_pos () |
void | clear () |
Definition at line 152 of file scim_socket_transaction.h.
|
constructor.
|
|
destructor. |
|
check if the transaction is valid. |
|
write the transaction to socket.
|
|
read a transaction from socket.
|
|
store a command into transaction. |
|
store a uint32 value into transaction. |
|
store a String object into transaction. |
|
store a WideString object into transaction. |
|
store a KeyEvent object into transaction. |
|
store a AttributeList object info transaction. |
|
store a LookupTable object into transaction. |
|
store a std::vector<uint32> object into transaction. |
|
store a std::vector<String> object into transaction. |
|
store a std::vector<WideString> object into transaction. |
|
store a raw buffer into transaction. |
|
get the type of the data at current read position. |
|
get a command from current read position. |
|
get a uint32 value from current read position. |
|
get a String from current read position. |
|
get a WideString from current read position. |
|
get a KeyEvent from current read position. |
|
get an AttributeList from current read position. |
|
get a CommonLookupTable from current read position. |
|
get a std::vector<uint32> from current read position. |
|
get a std::vector<String> from current read position. |
|
get a std::vector<WideString> from current read position. |
|
get a raw buffer from current read position. if raw == NULL then return the bufsize and skip this data. *raw should be deleted afterwards (do not use free!). |
|
skip one data from current read position. |
|
rewind the current read position, then the data can be read again. |
|
clear the transaction. |