00001 // OSB library ************************************************ -*- C++ -*- 00006 /* 00007 AUTHOR(S): Stephan Broennimann (vb) 00008 00009 RCS information 00010 $Name: OSB_060808 $ 00011 $Revision: 1.4 $ 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 _PRIVDLGGRP_H_ 00031 #define _PRIVDLGGRP_H_ 00032 00033 // ************************************************************************ 00034 // included header files 00035 // + standard includes 00036 00037 // + libraries 00038 #include <osbid.h> 00039 00040 // + local headers 00041 #include "privdlggrpgui.h" 00042 00043 // + class declarations 00044 namespace OSB_DB { 00045 class Session; 00046 } 00047 namespace OSB_LIB { 00048 class UserGroup; 00049 } 00050 00051 // ************************************************************************ 00052 // namespace extensions 00053 namespace OSB_GUI { 00054 00055 // ************************************************************************ 00056 // forward declarations 00057 00058 // ************************************************************************ 00059 // type definitions 00060 00061 // ************************************************************************ 00062 // class definitions 00066 class DlgUsrGrp : public DlgUsrGrpGui { 00067 public: 00069 typedef OSB_LIB::Id<OSB_LIB::UserGroup> GrpId; 00070 public: 00072 explicit DlgUsrGrp( 00073 QWidget* parent = 0, 00074 const char* name = 0, 00075 bool modal = false, 00076 WFlags flags = 0 00077 ); 00078 public: 00080 void languageChange(); 00087 int show( 00088 const OSB_LIB::UserGroup& usrGroup 00089 ); 00099 int edit( 00100 OSB_DB::Session& session, 00101 OSB_LIB::UserGroup* usrGroup 00102 ); 00103 private: 00105 void accept(); 00107 void setWidgets( 00108 const OSB_LIB::UserGroup& usrGroup, 00109 bool allowEdit 00110 ); 00111 private: 00113 OSB_DB::Session* session_; 00115 OSB_LIB::UserGroup* usrGroup_; 00116 }; // class DlgUsrGrp 00117 } // namespace OSB_GUI 00118 00119 // ************************************************************************ 00120 // inline definitions 00121 namespace OSB_GUI { 00122 } // namespace OSB_GUI 00123 #endif // #ifndef _PRIVDLGGRP_H_