tpa-profile-priv

tpa-profile-priv

Synopsis




TpaProfile*         tpa_profile_new                     (const gchar *name,
                                                         const gchar *description,
                                                         const gchar *protocol,
                                                         const gchar *icon);
GHashTable*         tpa_profile_get_formatted_table     (TpaProfile *self);
TpaParameter*       tpa_profile_add_parameter           (TpaProfile *self,
                                                         const gchar *name,
                                                         GType type);
TpaParameter*       tpa_profile_add_parameter_signature (TpaProfile *self,
                                                         const gchar *name,
                                                         const gchar *signature);
gboolean            tpa_profile_remove_parameter        (TpaProfile *self,
                                                         const gchar *name);

Description

Details

tpa_profile_new ()

TpaProfile*         tpa_profile_new                     (const gchar *name,
                                                         const gchar *description,
                                                         const gchar *protocol,
                                                         const gchar *icon);

Create new instance of TpaProfile.

name :
description :
protocol :
icon :
Returns : TpaProfile instance.

tpa_profile_get_formatted_table ()

GHashTable*         tpa_profile_get_formatted_table     (TpaProfile *self);

Function to format profile into a new GHashTable to be sent to connection managers.

self : TpaProfile instance
Returns : formatted profile into a GHashTable or NULL if fail.

tpa_profile_add_parameter ()

TpaParameter*       tpa_profile_add_parameter           (TpaProfile *self,
                                                         const gchar *name,
                                                         GType type);

Add parameter name, if a parameter with same name was already added it will fail.

self : TpaProfile instance.
name : Parameter name.
type : Parameter GType.
Returns : new TpaParameter instance or NULL if fail.

tpa_profile_add_parameter_signature ()

TpaParameter*       tpa_profile_add_parameter_signature (TpaProfile *self,
                                                         const gchar *name,
                                                         const gchar *signature);

Add parameter name, if a parameter with same name was already added it will fail.

self : TpaProfile instance.
name : New Parameter name.
signature : Parameter type in form of dbus signature.
Returns : new TpaParameter instance or NULL if fail.

tpa_profile_remove_parameter ()

gboolean            tpa_profile_remove_parameter        (TpaProfile *self,
                                                         const gchar *name);

Remove parameter by name.

self : TpaProfile instance.
name : New Parameter name.
Returns : FALSE if fail.