org.kde.koala
public class Connection extends QObject
UNKNOWN: This class provides a simple means for IPC between two applications via a pipe.
Constructor Summary | |
---|---|
protected | Connection(Class dummy) |
Connection()
Creates a new connection. |
Method Summary | |
---|---|
String | className() |
void | close() |
void | connect(QObject receiver, String member) |
void | connect(QObject receiver) |
void | connect() |
protected void | dequeue() |
int | fd_from()
Returns the input file descriptor. |
int | fd_to()
Returns the output file descriptor. |
void | init(int fd_in, int fd_out)
Initialize the connection to use the given file
descriptors. |
boolean | inited()
Checks whether the connection has been initialized. |
QMetaObject | metaObject() |
int | read(int[] _cmd, byte[] data)
Receive data. |
void | resume()
Resume handling of incoming data. |
void | send(int cmd, byte[] arr)
Sends/queues the given command to be sent. |
void | send(int cmd) |
boolean | sendnow(int _cmd, byte[] data)
Sends the given command immediately. |
void | suspend()
Don't handle incoming data until resumed. |
boolean | suspended()
Returns status of connection. |
See Also: Connection
UNKNOWN: Creates a new connection.
Returns: the input file descriptor
UNKNOWN: Returns the input file descriptor.
Returns: the output file descriptor
UNKNOWN: Returns the output file descriptor.
Parameters: fd_in the input file descriptor to use fd_out the output file descriptor to use
See Also: Connection
UNKNOWN: Initialize the connection to use the given file descriptors.
Returns: true if the initialized
See Also: Connection
UNKNOWN: Checks whether the connection has been initialized.
Parameters: _cmd the received command will be written here data the received data will be written here
Returns: >=0 indicates the received data size upon success -1 indicates error
UNKNOWN: Receive data.
UNKNOWN: Resume handling of incoming data.
Parameters: cmd the command to set arr the bytes to send
UNKNOWN: Sends/queues the given command to be sent.
Parameters: _cmd the command to set data the bytes to send
Returns: true if successful, false otherwise
UNKNOWN: Sends the given command immediately.
UNKNOWN: Don't handle incoming data until resumed.
Returns: true if suspended, false otherwise
UNKNOWN: Returns status of connection.