/* This file is part of GNUnet (C) 2013 Christian Grothoff (and other contributing authors) GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GNUnet is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNUnet; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** * @file src/identity/gnunet-identity-gtk.h * @author Christian Grothoff */ #ifndef GNUNET_CONVERSATION_GTK_H #define GNUNET_CONVERSATION_GTK_H #include #include #include "gnunet_gtk.h" #include #include #include #include #include #include #include #include /** * active calls treeview columns */ enum ActiveCallsTreeViewColumns { AL_caller_id, //*gchar AL_caller, //* AL_caller_num, //gint AL_type, //gint AL_caller_state, //gint AL_call, //* AL_call_state, //gint AL_call_num //gint }; /** * callerstate (state of incoming call) */ enum CallerState { CT_active, CT_suspended, CT_ringing, CT_dead, CT_hangup, CT_rejected, CT_other }; /** * type of call */ enum TypeOfCall { CALL_IN, CALL_OUT }; /** * Possible states of the phone. */ enum PhoneState { /** * We're waiting for our own idenitty. */ PS_LOOKUP_EGO, /** * We're listening for calls */ PS_LISTEN, /** * We accepted an incoming phone call. */ PS_ACCEPTED, /** * Internal error */ PS_ERROR }; /** * States for current outgoing call. */ enum CallState { /** * We are looking up some other participant. */ CS_RESOLVING, /** * We are now ringing the other participant. */ CS_RINGING, /** * The other party accepted our call and we are now connected. */ CS_CONNECTED, /** * The call is currently suspended (by us). */ CS_SUSPENDED }; enum CallHistoryType { CH_ACCEPTED, CH_REJECTED, CH_OUTGOING, CH_HANGUP, CH_MISSED }; /** * Get our configuration. * * @return configuration handle */ extern const struct GNUNET_CONFIGURATION_Handle * GCG_get_configuration (void); /** * Get an object from the main window. * * @param name name of the object * @return NULL on error */ extern GObject * GCG_get_main_window_object (const char *); /** * update status bar * * @param message format string for message to put in statusbar * @param ... arguments for the format string */ void GCG_update_status (const gchar *message, ...); #define UPDATE_INFOBAR(format, ...) set_infobar_text(g_strdup_printf (format, ## __VA_ARGS__)) /** * log a message to gtk log textbuffer * * @param message format string for message to be logged * @param ... arguments for the format string */ extern void GCG_log (const char *message, ...); /** * Initiate a call to the given address. * * @param address address to call */ extern void GSC_do_call (const char *address); #endif