Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

/home/vlg/develop/gwavmerger/src/gWavMerger.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by assa-genesis
00003 //------------------------------------------------------------------------------
00004 //                            gWavMerger.h
00005 //------------------------------------------------------------------------------
00006 // $Id: gWavMerger.h,v 1.6 2003/02/07 05:15:10 vlg Exp $
00007 //------------------------------------------------------------------------------
00008 //
00009 //  This program is free software; you can redistribute it and/or
00010 //  modify it under the terms of the GNU General Public License
00011 //  as published by the Free Software Foundation; either version
00012 //  2 of the License, or (at your option) any later version.
00013 //------------------------------------------------------------------------------
00014 // Date   : Wed Dec 19 03:45:18 2001
00015 //------------------------------------------------------------------------------
00016 #ifndef GWAV_MERGER_H
00017 #define GWAV_MERGER_H
00018 
00019 #include <libgnomemm/main.h>
00020 #include <string>
00021 using std::string;
00022 
00023 #include <assa/GenServer.h>
00024 #include <assa/Singleton.h>
00025 #include <assa/TimeVal.h>
00026 
00027 #include "MainWindow.h"
00028 
00029 /*******************************************************************************
00030  Class gWavMerger - global variables and command-line arguments holder
00031 *******************************************************************************/
00032 
00033 class gWavMerger :
00034     public ASSA::GenServer,
00035     public ASSA::Singleton<gWavMerger>,
00036     public virtual SigC::Object
00037 {
00038 public:
00039     gWavMerger ();
00040     ~gWavMerger ();
00041 
00042     virtual void init (int* argc_, char* argv_[], const char* help_info_);
00043     virtual void initServer ();
00044     virtual void processServer ();
00045 
00046     int  get_exit_value () const { return m_exit_value; }
00047     void set_exit_value (int v_) { m_exit_value = v_;   }
00048     MainWindow* get_main_window () { return m_main_win; }
00049     
00050     bool timer_cb ();
00051     string wavjoin_options () const { return m_wavjoin_options; }
00052 
00053 private:
00054     static const int TIMEOUT;
00055 
00056     int          m_exit_value;     // Return status of the process
00057     string       m_gtk_options;
00058     string       m_wavjoin_options;
00059     int          m_log_level;
00060 
00061     MainWindow*  m_main_win;
00062     Gnome::Main* m_kit;
00063 };
00064 
00069 #define GWAVMERGER gWavMerger::getInstance()
00070 #define MAINWINDOW gWavMerger::getInstance()->get_main_window()
00071 #define REACTOR    gWavMerger::getInstance()->getReactor()
00072 
00073 #endif // GWAV_MERGER_H
00074 

Generated on Tue Feb 11 23:05:19 2003 for gwavmerger by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002