dlgtcs.h

Go to the documentation of this file.
00001 // OSB library ************************************************ -*- C++ -*-
00009 /*
00010   AUTHOR(S): Stephan Broennimann (vb)
00011 
00012   RCS information
00013    $Name: OSB_060808 $
00014    $Revision: 1.9 $
00015 
00016   License
00017    OSB rating and billing library for communication networks
00018    Copyright (C) 2004, 2005, 2006  OSB systems
00019 
00020    This file may be distributed and/or modify under the terms of the
00021    GNU General Public License (GPL) as published by the Free Software
00022    Foundation which is provided in the file LICENSE.GPL included in the
00023    packaging of this file.
00024 
00025    The file is distributed in the hope that it will be useful, but WITHOUT
00026    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00027    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00028    for more details.
00029 
00030    Holders of a OSB Commercial License may use this file under the terms
00031    and conditions of this commercial license.
00032  */
00033 #ifndef _DLGTCS_H_
00034 #define _DLGTCS_H_
00035 
00036 // ************************************************************************
00037 // included header files
00038 // + standard includes
00039 
00040 // + libraries
00041 
00042 // + local headers
00043 #include "ui/dlgtcsgui.h"
00044 #include "ui/tcsvscopygui.h"
00045 
00046 // ************************************************************************
00047 // class declarations
00048 namespace OSB_LIB {
00049     class TcSystem;
00050     class TcsVersion;
00051 }
00052 
00053 // ************************************************************************
00054 // namespace extensions
00055 namespace OSB_GUI {
00056 
00057 // ************************************************************************
00058 // class definitions
00063     class DlgTcs : private DlgTcsGui {
00064         Q_OBJECT                        // for vim ->;
00065     public:
00067         DlgTcs(
00068                   QWidget* parent,
00069             const char*    name  = "DlgTcs",
00070                   bool     modal = false,
00071                   WFlags   fl    = 0
00072         );
00074         bool dirty() const;
00076         int showTcs(const OSB_LIB::TcSystem& tcs);
00078         int editTcs(OSB_LIB::TcSystem* tcs);
00079     private:
00081         void languageChange();
00088         void displayTcs(
00089             const OSB_LIB::TcSystem& tcs,
00090                   bool               editable
00091         );
00092     private slots:
00094         void setDirty();
00095     private:
00097         bool dirty_;
00098     };
00099 
00103     class DlgTcsVsCopy : private DlgTcsVsCopyGui {
00104         Q_OBJECT                        // for vim ->;
00105     public:
00107         explicit DlgTcsVsCopy(
00108                   QWidget* parent,
00109             const char*    name   = "DlgTcsVsCopy",
00110                   bool     modal  = false,
00111                   WFlags   flags  = 0
00112         );
00113     public:
00114         // documentation from base class
00115         void languageChange();
00117         int copyTcsVs(
00118             OSB_LIB::TcsVersion* dest
00119         );
00120     private slots:
00121         void tcsChanged();
00122         void vsChanged();
00123     };                                  // class DlgTcsVsCopy
00124 }                                       // namespace OSB_GUI
00125 #endif                                  // #ifndef _DLGTCS_H_

Generated on Sat Sep 2 14:17:36 2006 for OSB Library by  doxygen 1.4.7