galago-person.h File Reference
Galago Person API. More...
#include <libgalago/galago-account.h>
#include <libgalago/galago-list.h>
#include <libgalago/galago-object.h>
#include <libgalago/galago-photo.h>
#include <libgalago/galago-service.h>
#include <libgalago/galago-signals.h>
#include <libgalago/galago-value.h>
Go to the source code of this file.
Common Property Definitions | |
#define | GALAGO_PERSON_PROP_FIRST_NAME "first-name" |
#define | GALAGO_PERSON_PROP_MIDDLE_NAME "middle-name" |
#define | GALAGO_PERSON_PROP_LAST_NAME "last-name" |
#define | GALAGO_PERSON_PROP_ADDRESS "address" |
#define | GALAGO_PERSON_PROP_CITY "city" |
#define | GALAGO_PERSON_PROP_STATE "state" |
#define | GALAGO_PERSON_PROP_COUNTRY "country" |
#define | GALAGO_PERSON_PROP_ZIPCODE "zipcode" |
Person API | |
GalagoObjectClass * | galago_person_get_class (void) |
Returns the class for a GalagoPerson. | |
GalagoPerson * | galago_person_new (const char *id, galago_bool native) |
Creates a person. | |
GalagoPerson * | galago_person_me_new (galago_bool native) |
Creates a new "Me" person. | |
void | galago_person_set_me (GalagoPerson *person) |
Sets a person to be the "Me" person. | |
galago_bool | galago_person_is_me (const GalagoPerson *person) |
Returns whether or not a person is the "Me" person. | |
const char * | galago_person_get_id (const GalagoPerson *person) |
Returns a person's application-specific unique ID. | |
galago_bool | galago_person_is_native (const GalagoPerson *person) |
Returns whether or not a person is native to the local application. | |
const char * | galago_person_get_display_name (const GalagoPerson *person) |
Returns the display name of a person, if any. | |
void | galago_person_set_photo (GalagoPerson *person, GalagoPhoto *photo) |
Sets the person's photo. | |
GalagoPhoto * | galago_person_get_photo (const GalagoPerson *person, galago_bool query) |
Returns the person's photo. | |
galago_bool | galago_person_has_accounts (const GalagoPerson *person, galago_bool query) |
Returns whether the person has any accounts at all. | |
const GalagoList * | galago_person_get_accounts (const GalagoPerson *person, galago_bool query) |
Returns a list of accounts in the person. | |
GalagoAccount * | galago_person_get_priority_account (const GalagoPerson *person) |
Returns the most available "priority" account. | |
void | galago_person_add_account (GalagoPerson *person, GalagoAccount *account) |
Adds an account to a person. | |
void | galago_person_remove_account (GalagoPerson *person, GalagoAccount *account) |
Removes an account from a person. | |
GalagoAccount * | galago_person_get_account (const GalagoPerson *person, const GalagoService *service, const char *username, galago_bool query) |
Returns the account with the specified username and service. | |
void | galago_person_set_property_string (GalagoPerson *person, const char *name, const char *value) |
Sets a string property on a person. | |
void | galago_person_set_property_bool (GalagoPerson *person, const char *name, galago_bool value) |
Sets a boolean property on a person. | |
void | galago_person_set_property_uint32 (GalagoPerson *person, const char *name, dbus_uint32_t value) |
Sets a uint32 property on a person. | |
void | galago_person_set_property (GalagoPerson *person, const char *name, GalagoValue *value) |
Sets a property on a person. | |
galago_bool | galago_person_remove_property (GalagoPerson *person, const char *name) |
Removes a property on a person. | |
const char * | galago_person_get_property_string (const GalagoPerson *person, const char *name) |
Returns the value of a string property on a person. | |
galago_bool | galago_person_get_property_bool (const GalagoPerson *person, const char *name) |
Returns the value of a boolean property on a person. | |
dbus_uint32_t | galago_person_get_property_uint32 (const GalagoPerson *person, const char *name) |
Returns the value of a uint32 property on a person. | |
const GalagoValue * | galago_person_get_property (const GalagoPerson *person, const char *name) |
Returns the value of a property on a person. | |
Defines | |
#define | GALAGO_CLASS_PERSON (galago_person_get_class()) |
#define | GALAGO_DBUS_PERSON_INTERFACE "org.freedesktop.Galago.Person" |
#define | GALAGO_IS_PERSON(obj) (GALAGO_IS_OBJECT(obj) && galago_object_check_cast((obj), GALAGO_CLASS_PERSON)) |
Typedefs | |
typedef _GalagoPerson | GalagoPerson |
typedef _GalagoPersonClass | GalagoPersonClass |
typedef _GalagoPersonPrivate | GalagoPersonPrivate |
Enumerations | |
enum | GalagoPropertyType { GALAGO_PROPERTY_TYPE_UNKNOWN = -1, GALAGO_PROPERTY_TYPE_STRING = 0, GALAGO_PROPERTY_TYPE_BOOL, GALAGO_PROPERTY_TYPE_UINT32 } |
Detailed Description
Galago Person API.
- Copyright:
- (C) 2004-2005 Christian Hammond
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Definition in file galago-person.h.
Enumeration Type Documentation
|
Definition at line 64 of file galago-person.h. |
Function Documentation
|
Adds an account to a person. This is used internally. You don't need to call this.
|
|
Returns the account with the specified username and service.
|
|
Returns a list of accounts in the person.
|
|
Returns the class for a GalagoPerson.
|
|
Returns the display name of a person, if any. The returned display name is from a static buffer. If you wish to store the name, you must strdup it.
|
|
Returns a person's application-specific unique ID.
|
|
Returns the person's photo.
|
|
Returns the most available "priority" account.
|
|
Returns the value of a property on a person.
|
|
Returns the value of a boolean property on a person.
|
|
Returns the value of a string property on a person.
|
|
Returns the value of a uint32 property on a person.
|
|
Returns whether the person has any accounts at all.
|
|
Returns whether or not a person is the "Me" person.
|
|
Returns whether or not a person is native to the local application.
|
|
Creates a new "Me" person.
|
|
Creates a person. If I could do this in real life, I'd never have be without a date again.
|
|
Removes an account from a person. This is used internally. You don't need to call this.
|
|
Removes a property on a person.
|
|
Sets a person to be the "Me" person. This should only be used internally. Please use galago_person_me_new() from the beginning. This is a one-way thing. You can't make a "Me" person a normal person.
|
|
Sets the person's photo. This is used internally. You don't need to call this.
|
|
Sets a property on a person. This is limited to string, boolean, and uint32 value types.
|
|
Sets a boolean property on a person.
|
|
Sets a string property on a person.
|
|
Sets a uint32 property on a person.
|