diff options
Diffstat (limited to 'src/conversation/gnunet-conversation-gtk.h')
-rw-r--r-- | src/conversation/gnunet-conversation-gtk.h | 218 |
1 files changed, 118 insertions, 100 deletions
diff --git a/src/conversation/gnunet-conversation-gtk.h b/src/conversation/gnunet-conversation-gtk.h index e4e007e0..665d4614 100644 --- a/src/conversation/gnunet-conversation-gtk.h +++ b/src/conversation/gnunet-conversation-gtk.h | |||
@@ -316,7 +316,7 @@ static GtkTreeView *active_treeview; | |||
316 | 316 | ||
317 | 317 | ||
318 | /** | 318 | /** |
319 | * List of all known zones/egos. | 319 | * List of contacts (records). |
320 | */ | 320 | */ |
321 | static GtkListStore *contacts_liststore; | 321 | static GtkListStore *contacts_liststore; |
322 | 322 | ||
@@ -358,6 +358,26 @@ static GtkTreeView *history_treeview; | |||
358 | static GtkTreeModel *history_treemodel; | 358 | static GtkTreeModel *history_treemodel; |
359 | 359 | ||
360 | 360 | ||
361 | /** | ||
362 | * list of zones | ||
363 | */ | ||
364 | static GtkListStore *zone_liststore; | ||
365 | |||
366 | /** | ||
367 | * zone treestore | ||
368 | */ | ||
369 | static GtkTreeStore *zone_treestore; | ||
370 | |||
371 | /** | ||
372 | * zone treeview | ||
373 | */ | ||
374 | static GtkTreeView *zone_treeview; | ||
375 | |||
376 | /** | ||
377 | * zone tree model | ||
378 | */ | ||
379 | static GtkTreeModel *zone_treemodel; | ||
380 | |||
361 | /** | 381 | /** |
362 | * Current state of iterating elements for the client. | 382 | * Current state of iterating elements for the client. |
363 | * NULL if we are not currently iterating. | 383 | * NULL if we are not currently iterating. |
@@ -394,109 +414,107 @@ static int ret; | |||
394 | */ | 414 | */ |
395 | GtkDialog *dialog; | 415 | GtkDialog *dialog; |
396 | 416 | ||
397 | |||
398 | |||
399 | /** | 417 | /** |
400 | * Context for edit operations and environment for plugins. | 418 | * Context for edit operations and environment for plugins. |
401 | * Typical plugins will only use the @e check_validity callback. | 419 | * Typical plugins will only use the @e check_validity callback. |
402 | */ | 420 | */ |
403 | //struct GNUNET_GTK_NAMESTORE_PluginEnvironment | 421 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment |
404 | //{ | 422 | { |
405 | // | 423 | |
406 | // /** | 424 | /** |
407 | // * Function that should be called by the plugin whenever values in | 425 | * Function that should be called by the plugin whenever values in |
408 | // * the dialog were edited. It will check the validity of the dialog | 426 | * the dialog were edited. It will check the validity of the dialog |
409 | // * and update the "save" button accordingly. | 427 | * and update the "save" button accordingly. |
410 | // */ | 428 | */ |
411 | // void (*check_validity)(struct GNUNET_GTK_NAMESTORE_PluginEnvironment *edc); | 429 | void (*check_validity)(struct GNUNET_GTK_NAMESTORE_PluginEnvironment *edc); |
412 | // | 430 | |
413 | // /** | 431 | /** |
414 | // * Builder for the dialog. | 432 | * Builder for the dialog. |
415 | // */ | 433 | */ |
416 | // GtkBuilder *builder; | 434 | GtkBuilder *builder; |
417 | // | 435 | |
418 | // /** | 436 | /** |
419 | // * Main dialog window. | 437 | * Main dialog window. |
420 | // */ | 438 | */ |
421 | // GtkDialog *dialog; | 439 | GtkDialog *dialog; |
422 | // | 440 | |
423 | // /** | 441 | /** |
424 | // * Where in the tree view are we editing? | 442 | * Where in the tree view are we editing? |
425 | // */ | 443 | */ |
426 | // struct RecordInfo *ri; | 444 | struct RecordInfo *ri; |
427 | // | 445 | |
428 | // /** | 446 | /** |
429 | // * Name of the record. | 447 | * Name of the record. |
430 | // */ | 448 | */ |
431 | // gchar *name; | 449 | gchar *name; |
432 | // | 450 | |
433 | // /** | 451 | /** |
434 | // * Value of the record in string format. | 452 | * Value of the record in string format. |
435 | // */ | 453 | */ |
436 | // gchar *n_value; | 454 | gchar *n_value; |
437 | // | 455 | |
438 | // /** | 456 | /** |
439 | // * Name of the zone into which the record should be placed. | 457 | * Name of the zone into which the record should be placed. |
440 | // */ | 458 | */ |
441 | // gchar *new_zone_option; | 459 | gchar *new_zone_option; |
442 | // | 460 | |
443 | // /** | 461 | /** |
444 | // * Ego of the zone into which the record should be placed. | 462 | * Ego of the zone into which the record should be placed. |
445 | // */ | 463 | */ |
446 | // struct GNUNET_IDENTITY_Ego *ego; | 464 | struct GNUNET_IDENTITY_Ego *ego; |
447 | // | 465 | |
448 | // /** | 466 | /** |
449 | // * List of all zones. | 467 | * List of all zones. |
450 | // */ | 468 | */ |
451 | // GtkListStore *zone_liststore; | 469 | GtkListStore *zone_liststore; |
452 | // | 470 | |
453 | // /** | 471 | /** |
454 | // * The plugin we used to edit the value. | 472 | * The plugin we used to edit the value. |
455 | // */ | 473 | */ |
456 | // struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; | 474 | struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; |
457 | // | 475 | |
458 | // /** | 476 | /** |
459 | // * Name of the plugin library. | 477 | * Name of the plugin library. |
460 | // */ | 478 | */ |
461 | // char *liblow; | 479 | char *liblow; |
462 | // | 480 | |
463 | // /** | 481 | /** |
464 | // * Expiration time value (absolute or relative). | 482 | * Expiration time value (absolute or relative). |
465 | // */ | 483 | */ |
466 | // guint64 n_exp_time; | 484 | guint64 n_exp_time; |
467 | // | 485 | |
468 | // /** | 486 | /** |
469 | // * Offset of the record we are editing in the 'rd' list of 'ri'. | 487 | * Offset of the record we are editing in the 'rd' list of 'ri'. |
470 | // */ | 488 | */ |
471 | // unsigned int off; | 489 | unsigned int off; |
472 | // | 490 | |
473 | // /** | 491 | /** |
474 | // * Flag indicating if the old record was in the namestore. | 492 | * Flag indicating if the old record was in the namestore. |
475 | // */ | 493 | */ |
476 | // int old_record_in_namestore; | 494 | int old_record_in_namestore; |
477 | // | 495 | |
478 | // /** | 496 | /** |
479 | // * Type of the record. | 497 | * Type of the record. |
480 | // */ | 498 | */ |
481 | // uint32_t record_type; | 499 | uint32_t record_type; |
482 | // | 500 | |
483 | // /** | 501 | /** |
484 | // * Is this record 'public'? | 502 | * Is this record 'public'? |
485 | // */ | 503 | */ |
486 | // gboolean n_public; | 504 | gboolean n_public; |
487 | // | 505 | |
488 | // /** | 506 | /** |
489 | // * Is the expiration time relative? | 507 | * Is the expiration time relative? |
490 | // */ | 508 | */ |
491 | // gboolean n_is_relative; | 509 | gboolean n_is_relative; |
492 | // | 510 | |
493 | // /** | 511 | /** |
494 | // * Is this record a shadow record? | 512 | * Is this record a shadow record? |
495 | // */ | 513 | */ |
496 | // gboolean n_is_shadow; | 514 | gboolean n_is_shadow; |
497 | // | 515 | |
498 | //}; | 516 | }; |
499 | // | 517 | |
500 | 518 | ||
501 | 519 | ||
502 | #endif | 520 | #endif |