Commit 972932d0 by gujin.wang

修改旧的卡券核销的实现

parent 8088e45e
#include "fmp_redeem_plugin_p.h"
#include "fmp_redeem_plugin_p.h"
#include "fmp_redeem.h"
FMRedeemPlugin::FMRedeemPlugin()
FMPRedeemPlugin::FMPRedeemPlugin()
:_redeem_service(0)
{
}
void FMRedeemPlugin::start(ctkPluginContext *context)
void FMPRedeemPlugin::start(ctkPluginContext *context)
{
_redeem_service = new FMPRedeem(context);
context->registerService<FMPRedeemInterface>( _redeem_service);
}
void FMRedeemPlugin::stop(ctkPluginContext *context)
void FMPRedeemPlugin::stop(ctkPluginContext *context)
{
Q_UNUSED(context)
if (_redeem_service)
......
#ifndef FMP_REDEEM_PLUGIN_P_H
#ifndef FMP_REDEEM_PLUGIN_P_H
#define FMP_REDEEM_PLUGIN_P_H
#include <ctkPluginActivator.h>
class FMPRedeem;
class FMRedeemPlugin : public QObject, public ctkPluginActivator
class FMPRedeemPlugin : public QObject, public ctkPluginActivator
{
Q_OBJECT
Q_INTERFACES(ctkPluginActivator)
......@@ -13,7 +13,7 @@ class FMRedeemPlugin : public QObject, public ctkPluginActivator
#endif
public:
explicit FMRedeemPlugin();
explicit FMPRedeemPlugin();
void start(ctkPluginContext* context);
void stop(ctkPluginContext* context);
......
#include "../../fmp_coupon/fmp_coupon_i.h"
\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment