-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpchacker.h
More file actions
55 lines (51 loc) · 1.91 KB
/
Copy pathpchacker.h
File metadata and controls
55 lines (51 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#if !defined(INC_H___A18B6A9B_FF85_41C8_98A5_267B32FB8AAC__HEAD__)
#define INC_H___A18B6A9B_FF85_41C8_98A5_267B32FB8AAC__HEAD__
namespace local {
class PCHacker final : public IPCHacker {
std::shared_ptr<std::mutex> m_Mutex = std::make_shared<std::mutex>();
public:
PCHacker();
virtual ~PCHacker();
private:
void Init();
void UnInit();
public:
bool Start(const IConfigure*) override final;
void Stop() override final;
IDownTaskNode* TaskCreate(const TypeID&) override final;
bool TaskAction(const TypeID&, const EnActionType&) override final;
public:
IConfigure* ConfigureGet() const override final;
protected:
IZip* ZipGet() const override final;
ICom* ComGet() const override final;
IWin* WinGet() const override final;
IEncryption* EncryptionGet() const override final;
libcurlpp::ILibcurlpp* LibcurlppGet() const override final;
libuvpp::ILibuv* LibuvppGet() const override final;
protected:
void RegisterTaskResultStatusCallback(const tfTaskResultStatusCb&) override final;
void RegisterOpenResourceCallback(const tfOpenResourceCallback&) override final;
public:
shared::container::map<TypeID, Taskman*> m_TaskmanPtrQ;
shared::container::map<TypeID/*res(game) id*/, TaskNode*> m_TaskPool;
shared::container::queue<std::shared_ptr<ITaskResultStatus>> m_ResultQ;
shared::container::queue<ITaskNode*> m_ResponseResultQ;
private:
void Process();
private:
Zip* m_pZip = nullptr;
Win* m_pWin = nullptr;
Com* m_pCom = nullptr;
Configure* m_pConfigure = nullptr;
Encryption* m_pEncryption = nullptr;
std::vector<std::thread> m_Threads;
std::atomic_bool m_IsOpen = false;
tfTaskResultStatusCb m_TaskResultStatusCb = nullptr;
tfOpenResourceCallback m_OpenResourceCb = nullptr;
};
}///namespace local
/// /*新生®(上海)**/
/// /*2022_09_10T10:25:26.4661499Z**/
/// /*_ _ _ _ _ _ _ www.skstu.com _ _ _ _ _ _ _**/
#endif ///INC_H___A18B6A9B_FF85_41C8_98A5_267B32FB8AAC__HEAD__