00001 // OSB library ********************************************* -*- C++ -*- 00010 /* 00011 AUTHOR(S): Narendranath Reddy (nr) 00012 00013 RCS information 00014 $Name: OSB_060808 $ 00015 $Revision: 1.16 $ 00016 00017 License 00018 OSB rating and billing library for communication networks 00019 Copyright (C) 2004, 2005, 2006 OSB systems 00020 00021 This file may be distributed and/or modify under the terms of the 00022 GNU General Public License (GPL) as published by the Free Software 00023 Foundation which is provided in the file LICENSE.GPL included in the 00024 packaging of this file. 00025 00026 The file is distributed in the hope that it will be useful, but WITHOUT 00027 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00028 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00029 for more details. 00030 00031 Holders of a OSB Commercial License may use this file under the terms 00032 and conditions of this commercial license. 00033 */ 00034 #ifndef _INVOICEDIRGW_H_ 00035 #define _INVOICEDIRGW_H_ 00036 00037 // ********************************************************************* 00038 // + standard includes 00039 00040 // + local headers 00041 #include "invoicedir.h" 00042 00043 // ********************************************************************* 00044 // class declarations 00045 namespace OSB_DB { 00046 class Session; 00047 } 00048 00049 // ************************************************************************ 00050 // namespace extensions 00051 namespace OSB_DB { 00052 00053 // ********************************************************************* 00054 // class definitions 00055 00059 struct InvoicedirGw { 00060 public: 00067 void addInvInfo(const Session& session, 00068 const OSB_LIB::InvoiceInfo& invInfo 00069 ); 00070 00079 std::list<OSB_LIB::InvoiceInfo> fetch( 00080 const Session& session, 00081 const OSB_LIB::Contract::Oid& contractId, 00082 const OSB_LIB::InvoiceInfo::StatementType& type 00083 ); 00084 }; 00085 } // namespace OSB_DB 00086 #endif // #ifndef _INVOICEDIRGW_H_