Página principal | Lista de componentes | Directories | Lista de archivos | Miembros de las clases | Archivos de los miembros | Páginas relacionadas

administrador.h

Ir a la documentación de este archivo.
00001 /* 
00002  * LabSession - login application and administration tools 
00003  * Copyright (C) 2005 - 2006 - Hugo Ruscitti (see AUTHORS file)
00004  * 
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  * 
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00018  */
00019 
00025 #ifndef _ADMINISTRADOR_H
00026 #define _ADMINISTRADOR_H
00027 
00028 #include "util.h"
00029 #include "socket.h"
00030 
00034 struct componentes
00035 {
00036         GtkWidget * ventana;    
00037         GtkCList * lista;       
00038 };
00039 
00040 
00044 typedef struct administrador
00045 {
00046         char ip [20];                   
00047         int puerto;                     
00048         GTcpSocket * socket;            
00049         GIOChannel * io;                
00050         struct componentes form1;       
00051 } Administrador;
00052 
00053 
00054 /* inicio del programa */
00055 int administrador_cargar_opciones (Administrador * data, int argc, char** argv);
00056 int administrador_cargar_opciones_disco (Administrador * data);
00057 int administrador_cargar_opciones_arg (Administrador * data, int , char ** );
00058 int administrador_iniciar (Administrador * data, int argc, char * argv []);
00059 int administrador_conectar_al_servidor (Administrador * data);
00060 int administrador_identificar (Administrador * data, char * passwd);
00061 
00062 gboolean administrador_atender_servidor (GIOChannel * io, GIOCondition cond, \
00063                 gpointer _data);
00064 
00065 /* mensajes */
00066 void administrador_atender_datos (Administrador * data);
00067 void administrador_atender_error (Administrador * data);
00068 void administrador_atender_logout (Administrador * data);
00069 void administrador_atender_usuario (Administrador * data);
00070 
00071 
00072 /* eventos */
00073 void adm_salir (GtkMenuItem * menuitem, gpointer _data);
00074 void adm_mensaje (GtkMenuItem * menuitem, gpointer _data);
00075 void adm_cerrar (GtkMenuItem * menuitem, gpointer _data);
00076 void adm_reiniciar (GtkMenuItem * menuitem, gpointer _data);
00077 void adm_apagar (GtkMenuItem * menuitem, gpointer _data);
00078 void adm_acercade (GtkMenuItem * menuitem, gpointer _data);
00079 void adm_actualizar (GtkMenuItem * menuitem, gpointer _data);
00080 void adm_sesion (GtkMenuItem * menuitem, gpointer _data);
00081 void administrador_emitir_accion (Administrador * data, enum socket_mensaje 
00082                 mensaje, char * extra);
00083 
00084 /* general */
00085 void administrador_mostrar_error (Administrador * data, char * msg);
00086 void administrador_salida_con_error (Administrador * data, char * motivo);
00087 int administrador_selecciona_alguno (Administrador * data);
00088 void administrador_mensaje_debe_seleccionar (Administrador * data);
00089 void administrador_crear_ventana (Administrador * data);
00090 
00091 void adm_popup_lista (void * data);
00092 
00093 #endif 




Generado con Doxygen, versión 1.4.2