Subversion Repositories tpanel

Rev

Rev 446 | Rev 475 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 446 Rev 462
Line 53... Line 53...
53
        void setFileSize(off64_t fs) { mFileSize = fs; }
53
        void setFileSize(off64_t fs) { mFileSize = fs; }
54
        off64_t getFileSize() { return mFileSize; }
54
        off64_t getFileSize() { return mFileSize; }
55
        off64_t getFileSize(const std::string& file);
55
        off64_t getFileSize(const std::string& file);
56
        void regCallbackProcessEvents(std::function<void ()> pe) { _processEvents = pe; }
56
        void regCallbackProcessEvents(std::function<void ()> pe) { _processEvents = pe; }
57
        void regCallbackProgressBar(std::function<void (int percent)> pb) { _progressBar = pb; }
57
        void regCallbackProgressBar(std::function<void (int percent)> pb) { _progressBar = pb; }
-
 
58
        void setTP5(bool tp) { mIsTP5 = tp; }
58
 
59
 
59
        static bool haveSystemMarker();
60
        static bool haveSystemMarker();
60
 
61
 
-
 
62
    protected:
-
 
63
        bool testForTp5();
-
 
64
 
61
    private:
65
    private:
62
        std::function<void ()> _processEvents{nullptr};
66
        std::function<void ()> _processEvents{nullptr};
63
        std::function<void (int percent)> _progressBar{nullptr};
67
        std::function<void (int percent)> _progressBar{nullptr};
64
 
68
 
65
        bool createPanelConfigs();
69
        bool createPanelConfigs();
Line 77... Line 81...
77
        off64_t mFileSize{0};
81
        off64_t mFileSize{0};
78
        bool mDirStructureCreated{false};
82
        bool mDirStructureCreated{false};
79
        bool mPanelConfigsCreated{false};
83
        bool mPanelConfigsCreated{false};
80
        bool mSystemConfigsCreated{false};
84
        bool mSystemConfigsCreated{false};
81
        bool mDemoPageCreated{false};
85
        bool mDemoPageCreated{false};
-
 
86
        bool mIsTP5{false};
82
};
87
};
83
 
88
 
84
#endif // TTPINIT_H
89
#endif // TTPINIT_H