Skip to content

Instantly share code, notes, and snippets.

@darkdukey
Created November 7, 2014 21:31
Show Gist options
  • Save darkdukey/2e58ebc03176046fb785 to your computer and use it in GitHub Desktop.
Save darkdukey/2e58ebc03176046fb785 to your computer and use it in GitHub Desktop.
Cocos2d-x Plugin for PushNotification
#include "PluginProtocol.h"
#include <map>
#include <list>
#include <string>
using namespace std;
typedef enum
{
kPushReceiveMessage,/**value is callback of Receiving Message . */
} PushActionResultCode;
class ProtocolPush;
class PushActionListener
{
public:
virtual void onActionResult(ProtocolPush* pPlugin, PushActionResultCode code, const char* msg) = 0;
};
class ProtocolPush : public PluginProtocol
{
public:
virtual void startPush() = 0 ;
virtual void closePush() = 0 ;
virtual void setAlias(string alias) = 0;
virtual void delAlias(string alias) = 0;
virtual void setTags(list<string> tags) = 0;
virtual void delTags(list<string> tags) = 0;
virtual void setActionListener(PushActionListener* listener) = 0 ;
virtual PushActionListener* getActionListener() = 0 ;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment