Subversion Repositories tpanel

Rev

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

Rev 117 Rev 120
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 <functional>
22
 
23
 
23
class TTPInit
24
class TTPInit
24
{
25
{
25
    public:
26
    public:
26
        TTPInit(const std::string& path);
27
        TTPInit(const std::string& path);
Line 28... Line 29...
28
 
29
 
29
        void setPath(const std::string& p) { mPath = p; }
30
        void setPath(const std::string& p) { mPath = p; }
30
        bool createDirectoryStructure();
31
        bool createDirectoryStructure();
31
        bool loadSurfaceFromController(bool force=false);
32
        bool loadSurfaceFromController(bool force=false);
32
 
33
 
-
 
34
        int progressCallback(off64_t xfer);
-
 
35
        void regCallbackProcessEvents(std::function<void ()> pe) { _processEvents = pe; }
-
 
36
 
33
    private:
37
    private:
-
 
38
        std::function<void ()> _processEvents{nullptr};
-
 
39
 
34
        bool createPanelConfigs();
40
        bool createPanelConfigs();
35
        bool createSystemConfigs();
41
        bool createSystemConfigs();
36
        bool _makeDir(const std::string& dir);
42
        bool _makeDir(const std::string& dir);
37
        bool copyFile(const std::string& fname);
43
        bool copyFile(const std::string& fname);
38
#ifdef __ANDROID__
44
#ifdef __ANDROID__