Public Methods | |
RemoteRoster (const BNetAddress* address = NULL) | |
Constructs a RemoteRoster referring to a host associated with the supplied address. More... | |
RemoteRoster (const char* host) | |
Constructs a RemoteRoster referring to a host associated with the supplied host name. More... | |
~RemoteRoster () | |
Frees all resources associate with the object. More... | |
status_t | SetTo (const BNetAddress* address) |
Initializes a RemoteRoster to referring to a host associated with the supplied address. More... | |
status_t | SetTo (const char* host) |
Initializes a RemoteRoster to referring to a host associated with the supplied host name. More... | |
void | Unset () |
Uninitializes the object. More... | |
status_t | InitCheck () const |
Returns the status of the last initialization. More... | |
status_t | GetAppList (BList* teams) const |
Returns a list of the applications running on the remote host. More... | |
status_t | GetAppList (const char* signature, BList* teams) const |
Returns a list of the applications running on the remote host that have the given signature. More... | |
team_id | TeamFor (const char* signature) const |
Returns the team_id of the application running on the remote host that has the given signature. More... | |
status_t | GetRunningAppInfo (const char* signature, app_info* info) const |
Returns an info of the application running on the remote host that has the given signature. More... | |
status_t | GetRunningAppInfo (team_id team, app_info* info) const |
Returns an info of the application running on the remote host that has the given team_id. More... | |
status_t | GetActiveAppInfo (app_info* info) const |
Returns an info of the application active on the remote host. More... | |
status_t | GetMessenger (const char* signature, BMessenger* messenger, bool byName = false) const |
Returns a messenger for the application running on the remote host that has the given signature. More... | |
status_t | GetMessenger (team_id team, BMessenger* messenger) const |
Returns a messenger for the application running on the remote host that has the given team_id. More... | |
Private Attributes | |
status_t | fInitStatus |
BNetAddress* | fAddress |
RemoteRosterImpl* | fImpl |
Only a subset of the BRoster functionality is implemented, though. Namely, most of the methods for querying running application. Additionally the GetMessenger() methods retrieve BMessengers referring to remote applications.
Definition at line 42 of file RemoteRoster.h.
|
Constructs a RemoteRoster referring to a host associated with the supplied address. After construction InitCheck() shall be invoked to check whether the roster could be initialized properly.
Definition at line 61 of file RemoteRoster.cpp. |
|
Constructs a RemoteRoster referring to a host associated with the supplied host name. After construction InitCheck() shall be invoked to check whether the roster could be initialized properly.
Definition at line 81 of file RemoteRoster.cpp. |
|
Frees all resources associate with the object.
Definition at line 94 of file RemoteRoster.cpp. |
|
Returns an info of the application active on the remote host. Corresponds to BRoster::GetActiveAppInfo(app_info*).
Definition at line 351 of file RemoteRoster.cpp. |
|
Returns a list of the applications running on the remote host that have the given signature. Corresponds to BRoster::GetAppList(const char*, BList*). The returned team_ids are, of course, not valid on this machine. They can be used as parameter for GetRunningAppInfo() or GetMessenger() though.
Definition at line 257 of file RemoteRoster.cpp. |
|
Returns a list of the applications running on the remote host. Corresponds to BRoster::GetAppList(BList*). The returned team_ids are, of course, not valid on this machine. They can be used as parameter for GetRunningAppInfo() or GetMessenger() though.
Definition at line 233 of file RemoteRoster.cpp. |
|
Returns a messenger for the application running on the remote host that has the given team_id.
Definition at line 397 of file RemoteRoster.cpp. |
|
Returns a messenger for the application running on the remote host that has the given signature.
If no application with the given signature could be found and byName is
Definition at line 375 of file RemoteRoster.cpp. |
|
Returns an info of the application running on the remote host that has the given team_id. Corresponds to BRoster::GetRunningAppInfo(team_id, app_info*).
Definition at line 331 of file RemoteRoster.cpp. |
|
Returns an info of the application running on the remote host that has the given signature. If there are more than one running applications with the given signature, it is undefined whose info will be returned. The method is equivalent to GetRunningAppInfo(TeamFor(signature), info)
Definition at line 308 of file RemoteRoster.cpp. |
|
Returns the status of the last initialization.
Definition at line 213 of file RemoteRoster.cpp. Referenced by GetActiveAppInfo(), GetAppList(), GetMessenger(), GetRunningAppInfo(), and TeamFor(). |
|
Initializes a RemoteRoster to referring to a host associated with the supplied host name.
Definition at line 178 of file RemoteRoster.cpp. |
|
Initializes a RemoteRoster to referring to a host associated with the supplied address.
Definition at line 110 of file RemoteRoster.cpp. Referenced by SetTo(). |
|
Returns the team_id of the application running on the remote host that has the given signature. Corresponds to BRoster::TeamFor(const char*). The returned team_id is, of course, not valid on this machine. It can be used as parameter for GetRunningAppInfo() or GetMessenger() though. If there are more than one running applications with the given signature, it is undefined whose team_id will be returned.
Definition at line 282 of file RemoteRoster.cpp. |
|
Uninitializes the object.
Definition at line 194 of file RemoteRoster.cpp. Referenced by SetTo(), and ~RemoteRoster(). |
|
Definition at line 71 of file RemoteRoster.h. |
|
Definition at line 72 of file RemoteRoster.h. |
|
Definition at line 70 of file RemoteRoster.h. |