2012-04-19 14:35:52 +08:00
|
|
|
#ifndef __NOTIFICATIONCENTERTEST_H__
|
|
|
|
#define __NOTIFICATIONCENTERTEST_H__
|
|
|
|
|
2012-02-10 11:46:18 +08:00
|
|
|
#include "cocos2d.h"
|
|
|
|
|
2012-02-14 18:04:56 +08:00
|
|
|
class NotificationCenterTest : public cocos2d::CCLayer
|
2012-02-10 11:46:18 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
NotificationCenterTest();
|
2012-02-14 18:04:56 +08:00
|
|
|
void toExtensionsMainLayer(cocos2d::CCObject* sender);
|
2012-02-10 11:46:18 +08:00
|
|
|
void toggleSwitch(cocos2d::CCObject *sender);
|
|
|
|
void connectToSwitch(cocos2d::CCObject *sender);
|
2013-03-10 22:34:01 +08:00
|
|
|
void doNothing(cocos2d::CCObject *sender);
|
2012-02-10 11:46:18 +08:00
|
|
|
private:
|
2013-06-15 14:03:30 +08:00
|
|
|
bool _showImage;
|
2012-02-10 11:46:18 +08:00
|
|
|
};
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
void runNotificationCenterTest();
|
|
|
|
|
|
|
|
#endif /* __NOTIFICATIONCENTERTEST_H__ */
|