Zhao Yuhang
2023-12-10 8ed7d7a178ba186e1ef83e78a046ca143d42857a
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
#ifndef COREWINDOWAGENTPRIVATE_H
#define COREWINDOWAGENTPRIVATE_H
 
#include <QWKCore/corewindowagent.h>
#include <QWKCore/private/abstractwindowcontext_p.h>
 
namespace QWK {
 
    class QWK_CORE_EXPORT CoreWindowAgentPrivate {
        Q_DECLARE_PUBLIC(CoreWindowAgent)
    public:
        CoreWindowAgentPrivate();
        virtual ~CoreWindowAgentPrivate();
 
        void init();
 
        CoreWindowAgent *q_ptr; // no need to initialize
 
        virtual AbstractWindowContext *createContext() const;
 
        bool setup(QObject *host, WindowItemDelegate *delegate);
 
        std::unique_ptr<AbstractWindowContext> context;
 
        Q_DISABLE_COPY_MOVE(CoreWindowAgentPrivate)
    };
 
}
 
#endif // COREWINDOWAGENTPRIVATE_H