00001 // OSB library ************************************************ -*- C++ -*- 00006 /* 00007 AUTHOR(S): Stephan Broennimann (vb) 00008 00009 RCS information 00010 $Name: OSB_060808 $ 00011 $Revision: 1.19 $ 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 _FRMTARIFFADMIN_H_ 00031 #define _FRMTARIFFADMIN_H_ 00032 00033 // ************************************************************************ 00034 // included header files 00035 // + standard includes 00036 00037 // + libraries 00038 #include <tcatutils.h> 00039 00040 // + local headers 00041 #include "ui/frmtagui.h" 00042 00043 // ************************************************************************ 00044 // class declarations 00045 namespace OSB_LIB { 00046 class OsbUser; 00047 } 00048 00049 namespace OSB_GUI { 00050 class TsList; 00051 class ToMenu; 00052 class OsbSplash; 00053 } 00054 00055 // ************************************************************************ 00056 // namespace extensions 00057 namespace OSB_GUI { 00058 00059 // ************************************************************************ 00060 // class definitions 00064 class FrmTa : public FrmTaGui { 00065 public: 00067 explicit FrmTa( 00068 OSB_LIB::OsbUser& user, 00069 QWidget* parent = 0, 00070 const char* name = 0, 00071 WFlags fl = WType_TopLevel 00072 ); 00073 public: 00075 void show(); 00077 void enableToMenu(bool on); 00078 protected: 00080 void languageChange(); 00081 private: 00085 void loadTcat(); 00089 void reloadTcat(); 00093 void waitToggled(bool); 00094 private: 00096 OSB_LIB::OsbUser& user_; 00098 int toMenuId_; 00100 bool tcatLoaded_; 00101 }; // class FrmTa 00102 00106 class TcatReadTracker : public OSB_LIB::TcatReadMonitor { 00107 public: 00109 TcatReadTracker( 00110 OsbSplash& splash 00111 ); 00113 void notify( 00114 Action action, 00115 Status status 00116 ); 00117 private: 00119 TcatReadTracker& operator=(const TcatReadTracker&); 00120 private: 00121 OsbSplash& splash_; 00122 }; // class TcatReadTracker 00123 } // namespace OSB_GUI 00124 #endif // #ifndef _FRMTARIFFADMIN_H_ 00125