1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef CVSKEEPER_H |
6 | #define CVSKEEPER_H |
7 | |
8 | #include <QObject> |
9 | |
10 | class SvnClientWidget; |
11 | class GitQlientWidget; |
12 | class CVSkeeper final: public QObject |
13 | { |
14 | Q_OBJECT |
15 | Q_DISABLE_COPY(CVSkeeper) |
16 | explicit CVSkeeper(QObject *parent = nullptr); |
17 | |
18 | public: |
19 | static CVSkeeper *instance(); |
20 | void openRepos(const QString &repoPath); |
21 | SvnClientWidget *svnMainWidget(); |
22 | GitQlientWidget *gitMainWidget(); |
23 | |
24 | private: |
25 | SvnClientWidget *svnReposWidget; |
26 | GitQlientWidget *gitReposWidget; |
27 | }; |
28 | |
29 | #endif // CVSKEEPER_H |
30 | |