Main Page | Modules | Class Hierarchy | Data Structures | File List | Data Fields | Globals | Related Pages

openmaiaOptions.h

Go to the documentation of this file.
00001 
00002 // This code is part of the MaiaProject free software
00003 //
00004 // Keyboard and Mouse Emulator - Virtual keyboard Engine
00005 //
00006 // Copyright (c) 2002-2003 Luca Clivio <luca.clivio@maiaproject.org>
00007 // Tel. +39-347-2538040
00008 // via B.Croce 2, 20037 Paderno Dugnano (Milano) - Italy
00009 //
00010 // Developers:
00011 //    Simone Mangano <simone.mangano@maiaproject.org>
00012 //    Andrea Tosato  <andrea.tosato@maiaproject.org>
00013 //
00014 //  -----------------------------------------------------------------------------
00015 //  This program is free software; This program is free software; 
00016 //  you can redistribute it and/or modify it under the terms of the 
00017 //  GNU General Public License as published by the Free Software Foundation; 
00018 //  either version 2 of the License, or (at your option) any later version.
00019 //  but WITHOUT ANY WARRANTY; without even the implied warranty of                              
00020 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the                                
00021 //  GNU General Public License for more details.                                                
00022 //  You should have received a copy of the GNU General Public License                           
00023 //  along with this program; if not, write to the Free Software                                 
00024 //  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                                   
00026 
00027 
00028 // this class stores network informations about generi openmaiaOptions
00029 
00030 #ifndef _openmaiaOptions_
00031 #define _openmaiaOptions_
00032 
00033 class openmaiaFrame;
00034 
00035 #include <iostream>
00036 #include <string>
00037 
00038 #include <wx/wx.h>
00039 #include <wx/socket.h>
00040 
00041 #include <openmaia/libopenmaia.h>
00042 
00051 class openmaiaOptions: public omXMLParser
00052 {
00053  public:
00054 
00055   wxArrayString agentsToStart;
00056 
00057   // options - default page
00058   wxString selectedProfile;
00059   wxString lastSelectedProfile;
00060 
00061   // options - prefs page
00062   bool autostartProfileFlag;
00063   wxString profileToAutostart;
00064   bool autoiconize;
00065 
00066   // options - prefs page
00067   bool startServerFlag, connectToServerFlag;
00068   wxString serverToConnect;
00069   int portToConnect;
00070 
00071   wxString language;
00072 
00073   openmaiaOptions();
00074   wxString GenerateOptionsXMLString();
00075   wxString GenerateProfileOptionsXMLString();
00076 
00077   // implement xml parser methods
00078   void AtStartDocument() ;
00079   void AtEndDocument() ;
00080   void AtStartTag( wxString, omXMLParameters) ;
00081   void AtEndTag( wxString ) ;
00082 
00083   // object methods
00084   void LoadOptions(wxString);
00085 
00086 
00087 };
00088 
00089 #endif  // _openmaiaOptions_