Created
November 7, 2014 21:31
-
-
Save darkdukey/2e58ebc03176046fb785 to your computer and use it in GitHub Desktop.
Cocos2d-x Plugin for PushNotification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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