2013-01-28 15:17:20 +08:00
|
|
|
#ifndef __FILEUTILSTEST_H__
|
|
|
|
#define __FILEUTILSTEST_H__
|
|
|
|
|
|
|
|
#include "../testBasic.h"
|
|
|
|
USING_NS_CC;
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class FileUtilsTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
class FileUtilsDemo : public CCLayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
void backCallback(CCObject* pSender);
|
|
|
|
void nextCallback(CCObject* pSender);
|
|
|
|
void restartCallback(CCObject* pSender);
|
|
|
|
};
|
|
|
|
|
|
|
|
class TestResolutionDirectories : public FileUtilsDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
private:
|
|
|
|
vector<string> m_defaultSearchPathArray;
|
|
|
|
vector<string> m_defaultResolutionsOrderArray;
|
|
|
|
};
|
|
|
|
|
|
|
|
class TestSearchPath : public FileUtilsDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
private:
|
|
|
|
vector<string> m_defaultSearchPathArray;
|
|
|
|
vector<string> m_defaultResolutionsOrderArray;
|
|
|
|
};
|
|
|
|
|
|
|
|
class TestFilenameLookup : public FileUtilsDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
};
|
|
|
|
|
2013-02-01 22:18:43 +08:00
|
|
|
class TestIsFileExist : public FileUtilsDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
};
|
2013-01-28 15:17:20 +08:00
|
|
|
|
2013-04-28 00:36:37 +08:00
|
|
|
class TextWritePlist : public FileUtilsDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
};
|
|
|
|
|
2013-01-28 15:17:20 +08:00
|
|
|
#endif /* __FILEUTILSTEST_H__ */
|