Changeset bb5ce568
- Timestamp:
- 2012-06-07T22:41:17Z (12 years ago)
- Branches:
- master
- Children:
- e222c36
- Parents:
- aa88e50
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/account.c
raa88e50 rbb5ce568 53 53 54 54 s = set_add( &a->set, "auto_connect", "true", set_eval_account, a ); 55 s->flags |= ACC_SET_NOSAVE;55 s->flags |= SET_NOSAVE; 56 56 57 57 s = set_add( &a->set, "auto_reconnect", "true", set_eval_bool, a ); … … 61 61 62 62 s = set_add( &a->set, "nick_source", "handle", set_eval_nick_source, a ); 63 s->flags |= ACC_SET_NOSAVE; /* Just for bw compatibility! */63 s->flags |= SET_NOSAVE; /* Just for bw compatibility! */ 64 64 65 65 s = set_add( &a->set, "password", NULL, set_eval_account, a ); 66 s->flags |= ACC_SET_NOSAVE | SET_NULL_OK | SET_PASSWORD;66 s->flags |= SET_NOSAVE | SET_NULL_OK | SET_PASSWORD; 67 67 68 68 s = set_add( &a->set, "tag", NULL, set_eval_account, a ); 69 s->flags |= ACC_SET_NOSAVE;69 s->flags |= SET_NOSAVE; 70 70 71 71 s = set_add( &a->set, "username", NULL, set_eval_account, a ); 72 s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY;72 s->flags |= SET_NOSAVE | ACC_SET_OFFLINE_ONLY; 73 73 set_setstr( &a->set, "username", user ); 74 74 -
protocols/account.h
raa88e50 rbb5ce568 61 61 typedef enum 62 62 { 63 ACC_SET_NOSAVE = 0x01, /* Don't save this setting (i.e. stored elsewhere). */64 63 ACC_SET_OFFLINE_ONLY = 0x02, /* Allow changes only if the acct is offline. */ 65 64 ACC_SET_ONLINE_ONLY = 0x04, /* Allow changes only if the acct is online. */ -
protocols/jabber/jabber.c
raa88e50 rbb5ce568 80 80 81 81 s = set_add( &acc->set, "server", NULL, set_eval_account, acc ); 82 s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY | SET_NULL_OK;82 s->flags |= SET_NOSAVE | ACC_SET_OFFLINE_ONLY | SET_NULL_OK; 83 83 84 84 s = set_add( &acc->set, "ssl", "false", set_eval_bool, acc ); -
protocols/msn/msn.c
raa88e50 rbb5ce568 39 39 40 40 s = set_add( &acc->set, "display_name", NULL, set_eval_display_name, acc ); 41 s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY;41 s->flags |= SET_NOSAVE | ACC_SET_ONLINE_ONLY; 42 42 43 43 set_add( &acc->set, "mail_notifications", "false", set_eval_bool, acc ); -
protocols/oscar/oscar.c
raa88e50 rbb5ce568 378 378 icq ? AIM_DEFAULT_LOGIN_SERVER_ICQ 379 379 : AIM_DEFAULT_LOGIN_SERVER_AIM, set_eval_account, acc); 380 s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY;380 s->flags |= SET_NOSAVE | ACC_SET_OFFLINE_ONLY; 381 381 382 382 if (icq) { -
protocols/skype/skype.c
raa88e50 rbb5ce568 1509 1509 s = set_add(&acc->set, "display_name", NULL, skype_set_display_name, 1510 1510 acc); 1511 s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY;1511 s->flags |= SET_NOSAVE | ACC_SET_ONLINE_ONLY; 1512 1512 1513 1513 s = set_add(&acc->set, "call", NULL, skype_set_call, acc); 1514 s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY;1514 s->flags |= SET_NOSAVE | ACC_SET_ONLINE_ONLY; 1515 1515 1516 1516 s = set_add(&acc->set, "balance", NULL, skype_set_balance, acc); 1517 s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY;1517 s->flags |= SET_NOSAVE | ACC_SET_ONLINE_ONLY; 1518 1518 1519 1519 s = set_add(&acc->set, "skypeout_offline", "true", set_eval_bool, acc); -
set.h
raa88e50 rbb5ce568 45 45 typedef enum 46 46 { 47 SET_NOSAVE = 0x0001, 48 SET_NULL_OK = 0x0100, 49 SET_HIDDEN = 0x0200, 50 SET_PASSWORD = 0x0400, 51 SET_HIDDEN_DEFAULT = 0x0800, 47 SET_NOSAVE = 0x0001, /* Don't save this setting (i.e. stored elsewhere). */ 48 SET_NULL_OK = 0x0100, /* set->value == NULL is allowed. */ 49 SET_HIDDEN = 0x0200, /* Don't show up in setting lists. Mostly for internal storage. */ 50 SET_PASSWORD = 0x0400, /* Value shows up in settings list as "********". */ 51 SET_HIDDEN_DEFAULT = 0x0800, /* Hide unless changed from default. */ 52 52 } set_flags_t; 53 53 -
storage_xml.c
raa88e50 rbb5ce568 310 310 311 311 for( set = acc->set; set; set = set->next ) 312 if( set->value && !( set->flags & ACC_SET_NOSAVE ) )312 if( set->value && !( set->flags & SET_NOSAVE ) ) 313 313 { 314 314 struct xt_node *xset;
Note: See TracChangeset
for help on using the changeset viewer.