billrunlog-gw.h

Go to the documentation of this file.
00001 // OSB library ********************************************* -*- C++ -*-
00006 /*
00007   AUTHOR(S): Ramlan Rusdijanto (rr)
00008 
00009   RCS information
00010    $Name: OSB_060808 $
00011    $Revision: 1.18 $
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 _BILLRUNLOGGW_H_
00031 #define _BILLRUNLOGGW_H_
00032 
00033 // + standard includes
00034 //#include <string>
00035 //#include <functional>
00036 //#include <map>
00037 
00038 // + local headers
00039 #include "billcycle.h"
00040 #include "contract.h"
00041 #include "associate.h"
00042 
00043 // *********************************************************************
00044 // class declarations
00045 namespace OSB_DB {
00046     class Session;
00047 }
00048 
00049 namespace OSB_LIB {
00050     class OsbException;
00051     class Date;
00052 }
00053 
00054 // ************************************************************************
00055 // namespace extensions
00056 namespace OSB_DB {
00063     class BillRunLogGw
00064     {
00065     public:
00078         long add(
00079             const Session&                session,
00080             const OSB_LIB::Date&          billingDate,
00081                   char                    billingMode,
00082                   OSB_LIB::Billcycle::Oid billcycleId,
00083                   OSB_LIB::Contract::Oid  contractId,
00084                   OSB_LIB::Associate::Oid ownerId
00085         );
00096         void update(const Session& session, long billRunId,
00097                     long totalContract, long totalCommitted,
00098                     long totalRollback, long totalFailed);
00099     };                                  // class BillRunLogGw
00100 }                                       // namespace OSB_DB
00101 #endif                                  // #ifndef _BILLRUNLOGGW_H_

Generated on Sat Sep 2 14:06:31 2006 for OSB Library by  doxygen 1.4.7