You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/apps/examples/tutorial/cc_acc_xmlrpc/CCAcc.h

28 lines
528 B

#ifndef _CC_ACC_H
#define _CC_ACC_H
#include "AmApi.h"
/**
* accounting class for calling card.
* this module executes accounting functions
* over XMLRPC.
*/
class CCAcc : public AmDynInvoke
{
/** returns credit for pin, -1 if pin wrong */
long getCredit(string pin);
/** returns remaining credit */
long subtractCredit(string pin, long amount);
static CCAcc* _instance;
public:
CCAcc();
~CCAcc();
static CCAcc* instance();
void invoke(const string& method, const AmArg& args, AmArg& ret);
};
#endif