115 |
preferences.cwf10 = g_strdup ("qrz?"); |
preferences.cwf10 = g_strdup ("qrz?"); |
116 |
preferences.cwf11 = g_strdup ("pse k"); |
preferences.cwf11 = g_strdup ("pse k"); |
117 |
preferences.cwf12 = g_strdup ("++++test---- % %"); |
preferences.cwf12 = g_strdup ("++++test---- % %"); |
118 |
|
preferences.cwcq = g_strdup ("tu %"); |
119 |
|
preferences.cwsp = g_strdup ("tu 5nn#"); |
120 |
preferences.cwspeed = 24; |
preferences.cwspeed = 24; |
121 |
} |
} |
122 |
|
|
559 |
preferences.cwf12 = g_strdup (key); |
preferences.cwf12 = g_strdup (key); |
560 |
free (key); |
free (key); |
561 |
} |
} |
562 |
|
else if ((!xmlStrcmp(cur->name, (const xmlChar *)"cwcq"))) |
563 |
|
{ |
564 |
|
key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1); |
565 |
|
preferences.cwcq = g_strdup (key); |
566 |
|
free (key); |
567 |
|
} |
568 |
|
else if ((!xmlStrcmp(cur->name, (const xmlChar *)"cwsp"))) |
569 |
|
{ |
570 |
|
key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1); |
571 |
|
preferences.cwsp = g_strdup (key); |
572 |
|
free (key); |
573 |
|
} |
574 |
else if ((!xmlStrcmp(cur->name, (const xmlChar *)"cwspeed"))) |
else if ((!xmlStrcmp(cur->name, (const xmlChar *)"cwspeed"))) |
575 |
{ |
{ |
576 |
key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1); |
key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1); |
1021 |
xmlNodeSetContent (node, key); |
xmlNodeSetContent (node, key); |
1022 |
g_free (key); |
g_free (key); |
1023 |
} |
} |
1024 |
|
else if (!strcmp (node->name, "cwcq")) |
1025 |
|
{ |
1026 |
|
key = g_strdup_printf ("%s", preferences.cwcq); |
1027 |
|
xmlNodeSetContent (node, key); |
1028 |
|
g_free (key); |
1029 |
|
} |
1030 |
|
else if (!strcmp (node->name, "cwsp")) |
1031 |
|
{ |
1032 |
|
key = g_strdup_printf ("%s", preferences.cwsp); |
1033 |
|
xmlNodeSetContent (node, key); |
1034 |
|
g_free (key); |
1035 |
|
} |
1036 |
else if (!strcmp (node->name, "cwspeed")) |
else if (!strcmp (node->name, "cwspeed")) |
1037 |
{ |
{ |
1038 |
key = g_strdup_printf ("%d", preferences.cwspeed); |
key = g_strdup_printf ("%d", preferences.cwspeed); |
1193 |
xmlNewTextChild (cur, NULL, "cwf11", key); |
xmlNewTextChild (cur, NULL, "cwf11", key); |
1194 |
key = g_strdup_printf ("%s", preferences.cwf12); |
key = g_strdup_printf ("%s", preferences.cwf12); |
1195 |
xmlNewTextChild (cur, NULL, "cwf12", key); |
xmlNewTextChild (cur, NULL, "cwf12", key); |
1196 |
|
key = g_strdup_printf ("%s", preferences.cwcq); |
1197 |
|
xmlNewTextChild (cur, NULL, "cwcq", key); |
1198 |
|
key = g_strdup_printf ("%s", preferences.cwsp); |
1199 |
|
xmlNewTextChild (cur, NULL, "cwsp", key); |
1200 |
key = g_strdup_printf ("%d", preferences.cwspeed); |
key = g_strdup_printf ("%d", preferences.cwspeed); |
1201 |
xmlNewTextChild (cur, NULL, "cwspeed", key); |
xmlNewTextChild (cur, NULL, "cwspeed", key); |
1202 |
g_free (key); |
g_free (key); |
1345 |
xmlNewTextChild (cur, NULL, "cwf11", key); |
xmlNewTextChild (cur, NULL, "cwf11", key); |
1346 |
key = g_strdup_printf ("%s", preferences.cwf12); |
key = g_strdup_printf ("%s", preferences.cwf12); |
1347 |
xmlNewTextChild (cur, NULL, "cwf12", key); |
xmlNewTextChild (cur, NULL, "cwf12", key); |
1348 |
|
key = g_strdup_printf ("%s", preferences.cwcq); |
1349 |
|
xmlNewTextChild (cur, NULL, "cwcq", key); |
1350 |
|
key = g_strdup_printf ("%s", preferences.cwsp); |
1351 |
|
xmlNewTextChild (cur, NULL, "cwsp", key); |
1352 |
key = g_strdup_printf ("%d", preferences.cwspeed); |
key = g_strdup_printf ("%d", preferences.cwspeed); |
1353 |
xmlNewTextChild (cur, NULL, "cwspeed", key); |
xmlNewTextChild (cur, NULL, "cwspeed", key); |
1354 |
g_free (key); |
g_free (key); |