dlgtsvs.h

Go to the documentation of this file.
00001 // OSB library ************************************************ -*- C++ -*-
00006 /*
00007   AUTHOR(S): Stephan Broennimann (vb)
00008 
00009   RCS information
00010    $Name: OSB_060808 $
00011    $Revision: 1.10 $
00012 
00013   License
00014    OSB rating and billing library for communication networks
00015    Copyright (C) 2004, 2005, 2006  OSB systems
00016 
00017    This file may be distributed and/or modify under the terms of the
00018    GNU General Public License (GPL) as published by the Free Software
00019    Foundation which is provided in the file LICENSE.GPL included in the
00020    packaging of this file.
00021 
00022    The file is distributed in the hope that it will be useful, but WITHOUT
00023    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00024    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00025    for more details.
00026 
00027    Holders of a OSB Commercial License may use this file under the terms
00028    and conditions of this commercial license.
00029  */
00030 #ifndef _DLGTSVS_H_
00031 #define _DLGTSVS_H_
00032 
00033 // ************************************************************************
00034 // included header files
00035 // + standard includes
00036 
00037 // + libraries
00038 
00039 // + local headers
00040 #include "dlgtovs.h"
00041 #include "ui/tsvscopygui.h"
00042 
00043 // ************************************************************************
00044 // class declarations
00045 namespace OSB_LIB {
00046     class TsVersion;
00047 }
00048 
00049 namespace OSB_GUI {
00050     class TsVsCfg;
00051 }
00052 
00053 // ************************************************************************
00054 // namespace extensions
00055 namespace OSB_GUI {
00056 
00057 // ************************************************************************
00058 // forward declarations
00059 
00060 // ************************************************************************
00061 // type definitions
00062 
00063 // ************************************************************************
00064 // class definitions
00068     class DlgTsVsCopy : private DlgTsVsCopyGui {
00069         Q_OBJECT                        // for vim ->;
00070     public:
00072         explicit DlgTsVsCopy(
00073                   QWidget* parent,
00074             const char*    name   = "DlgTsVsCopy",
00075                   bool     modal  = false,
00076                   WFlags   flags  = 0
00077         );
00078     public:
00079         // documentation from base class
00080         void languageChange();
00082         int copyTsVs(
00083             OSB_LIB::TsVersion* dest
00084         );
00085     private slots:
00086         void tsChanged();
00087         void vsChanged();
00088     };                                  // class DlgTsVsCopy
00089 
00093     class DlgTsVs : private DlgToVs {
00094     public:
00096         explicit DlgTsVs(
00097                   QWidget* parent,
00098             const char*    name   = "DlgTsVs",
00099                   bool     modal  = false,
00100                   WFlags   flags  = 0
00101         );
00102     public:
00103         // documentation from base class
00104         void languageChange();
00106         int showTsVs(
00107             const OSB_LIB::TsVersion& tsVs
00108         );
00110         int editTsVs(
00111             OSB_LIB::TsVersion* tsVs
00112         );
00114         bool dirty() const;
00115     private:
00116         // documentation from base class
00117         void addGeneralInfo(
00118             QVBoxLayout* dlgLayout,
00119             ToVsHead*    generalInfo
00120         );
00127         void display(
00128             const OSB_LIB::TsVersion& tsVs,
00129                   bool                showOnly
00130         );
00131     private:
00133         TsVsCfg* cfg_;
00134     };                                  // class DlgTsVs
00135 }                                       // namespace OSB_GUI
00136 
00137 // ************************************************************************
00138 // inline definitions
00139 namespace OSB_GUI {
00140 }                                       // namespace OSB_GUI
00141 #endif                                  // #ifndef _DLGTSVS_H_

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