Top | ![]() |
![]() |
![]() |
![]() |
Profiles are used to distinguish between several routers. This is useful for mobile devices using private and business environements.
The strategy should always be:
Return set device
If it is not present, use first available plugin and set it as default
Only if no alternative is found, return NULL
void
rm_profile_shutdown (void
);
Shutdown profile (free profile list, free settings).
RmProfile *
rm_profile_add (const gchar *name
);
Create and add a new profile structure.
void
rm_profile_set_active (RmProfile *profile
);
Set active profile in detail:
Set internal active profile
Connect user plugin bindings
Initialize audio
Load and initialize action
Load journal
const gchar *
rm_profile_get_name (RmProfile *profile
);
Get profiles name of profile
.
void rm_profile_set_host (RmProfile *profile
,const gchar *host
);
Set host name used in profile.
void rm_profile_set_login_user (RmProfile *profile
,const gchar *user
);
Set login user used in profile.
void rm_profile_set_login_password (RmProfile *profile
,const gchar *password
);
Set login password used in profile.
RmAddressBook *
rm_profile_get_addressbook (RmProfile *profile
);
Get address book for selected profile.
void rm_profile_set_addressbook (RmProfile *profile
,RmAddressBook *book
);
Sets preferred addressbook within profile.
RmAudio *
rm_profile_get_audio (RmProfile *profile
);
Get audio for selected profile.
gchar *
rm_profile_get_audio_ringtone (RmProfile *profile
);
Get ringtone audio device for selected profile.
RmNotification *
rm_profile_get_notification (RmProfile *profile
);
Get notification for selected profile.
gchar **
rm_profile_get_notification_incoming_numbers
(RmProfile *profile
);
Get notification incoming numbers for selected profile.
gchar **
rm_profile_get_notification_outgoing_numbers
(RmProfile *profile
);
Get notification outgoing numbers for selected profile.
void rm_profile_set_notification_incoming_numbers (RmProfile *profile
,const gchar * const*numbers
);
Set notification incoming numbers for selected profile.
void rm_profile_set_notification_outgoing_numbers (RmProfile *profile
,const gchar * const*numbers
);
Set notification outgoing numbers for selected profile.
gboolean
rm_profile_get_notification_ringtone (RmProfile *profile
);
Get notification ringtone setting for selected profile.
RmPhone *
rm_profile_get_phone (RmProfile *profile
);
Get phone for selected profile.
void rm_profile_set_phone (RmProfile *profile
,RmPhone *phone
);
Set preferred phone within profile.
RmFax *
rm_profile_get_fax (RmProfile *profile
);
Get fax for selected profile.
void rm_profile_set_fax (RmProfile *profile
,gchar *name
);
Set preferred phone name within profile.