dlgtfvs.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.9 $
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 _DLGTFVS_H_
00031 #define _DLGTFVS_H_
00032 
00033 // ************************************************************************
00034 // included header files
00035 // + standard includes
00036 
00037 // + libraries
00038 #include <osbid.h>                      // for TfRfItem
00039 #include <qlistview.h>                  // for TfRfItem
00040 
00041 // + local headers
00042 #include "dlgtovs.h"
00043 #include "ui/tfvsgui.h"
00044 
00045 // ************************************************************************
00046 // class declarations
00047 namespace OSB_LIB {
00048     class RatingFn;
00049     class TfVersion;
00050 }
00051 
00052 // ************************************************************************
00053 // namespace extensions
00054 namespace OSB_GUI {
00055 
00056 // ************************************************************************
00057 // forward declarations
00058     class TfVsRf;
00059 
00060 // ************************************************************************
00061 // type definitions
00062 
00063 // ************************************************************************
00064 // class definitions
00068     class DlgTfVs : private DlgToVs {
00069     public:
00071         DlgTfVs(
00072                   QWidget* parent,
00073             const char*    name  = "DlgTfVs",
00074                   bool     modal = false,
00075                   WFlags   fl    = 0
00076         );
00077     public:
00079         int showTfVs(
00080             const OSB_LIB::TfVersion& tfVs
00081         );
00083         int editTfVs(
00084             OSB_LIB::TfVersion* tfVs
00085         );
00086     private:
00087         // documentation from base class
00088         void languageChange();
00089         // documentation from base class
00090         void addGeneralInfo(
00091             QVBoxLayout* dlgLayout,
00092             ToVsHead*    generalInfo
00093         );
00100         void display(
00101             const OSB_LIB::TfVersion& tfVs,
00102                   bool                showOnly
00103         );
00104     private:
00106         TfVsRf* rfCfg_;
00107     };                                  // class DlgTfVs
00108 
00113     class TfVsRf : public TfVsRfGui {
00114         Q_OBJECT                        // for vim ->;
00115     public:
00117         explicit TfVsRf(
00118                   QWidget* parent,
00119             const char*    name = "tfVsRf_",
00120             WFlags         fl   = 0
00121         );
00123         void languageChange();
00130         void display(
00131             const OSB_LIB::TfVersion& tfVs,
00132                   bool                showOnly
00133         );
00139         void populate(
00140             OSB_LIB::TfVersion* tfVs
00141         ) const;
00142     private slots:
00144         void removeRf();
00146         void addRf();
00147     };                                  // class TfVsRf
00148 
00154     class TfRfItem : public QListViewItem {
00155         typedef OSB_LIB::Id<OSB_LIB::RatingFn> ObjId;
00156     public:
00158         TfRfItem(
00159                   QListView*         parent,
00160             const OSB_LIB::RatingFn& rf
00161         );
00162     public:
00164         const ObjId& rfId() const;
00165     private:
00167         ObjId rfId_;
00168     };
00169 }                                       // namespace OSB_GUI
00170 
00171 // ************************************************************************
00172 // inline definitions
00173 namespace OSB_GUI {
00174 }                                       // namespace OSB_GUI
00175 #endif                                  // #ifndef _DLGTFVS_H_

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