Subversion Repositories tpanel

Rev

Rev 120 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 120 Rev 122
Line 17... Line 17...
17
 */
17
 */
18
#ifndef TTPINIT_H
18
#ifndef TTPINIT_H
19
#define TTPINIT_H
19
#define TTPINIT_H
20
 
20
 
21
#include <string>
21
#include <string>
-
 
22
#include <vector>
22
#include <functional>
23
#include <functional>
23
 
24
 
24
class TTPInit
25
class TTPInit
25
{
26
{
26
    public:
27
    public:
Line 28... Line 29...
28
        TTPInit();
29
        TTPInit();
29
 
30
 
30
        void setPath(const std::string& p) { mPath = p; }
31
        void setPath(const std::string& p) { mPath = p; }
31
        bool createDirectoryStructure();
32
        bool createDirectoryStructure();
32
        bool loadSurfaceFromController(bool force=false);
33
        bool loadSurfaceFromController(bool force=false);
-
 
34
        std::vector<std::string>& getFileList(const std::string& filter);
-
 
35
        bool isSystemDefault();
-
 
36
        bool isVirgin();
33
 
37
 
34
        int progressCallback(off64_t xfer);
38
        int progressCallback(off64_t xfer);
35
        void regCallbackProcessEvents(std::function<void ()> pe) { _processEvents = pe; }
39
        void regCallbackProcessEvents(std::function<void ()> pe) { _processEvents = pe; }
36
 
40
 
37
    private:
41
    private:
Line 43... Line 47...
43
        bool copyFile(const std::string& fname);
47
        bool copyFile(const std::string& fname);
44
#ifdef __ANDROID__
48
#ifdef __ANDROID__
45
        bool askPermissions();
49
        bool askPermissions();
46
#endif
50
#endif
47
        std::string mPath;
51
        std::string mPath;
-
 
52
        std::vector<std::string> mDirList;
48
};
53
};
49
 
54
 
50
#endif // TTPINIT_H
55
#endif // TTPINIT_H