ArnLib  4.0.x
Active Registry Network
ArnPersistSapi.hpp
Go to the documentation of this file.
1 // Copyright (C) 2010-2022 Michael Wiklund.
2 // All rights reserved.
3 // Contact: arnlib@wiklunden.se
4 //
5 // This file is part of the ArnLib - Active Registry Network.
6 // Parts of ArnLib depend on Qt and/or other libraries that have their own
7 // licenses. Usage of these other libraries is subject to their respective
8 // license agreements.
9 //
10 // GNU Lesser General Public License Usage
11 // This file may be used under the terms of the GNU Lesser General Public
12 // License version 2.1 as published by the Free Software Foundation and
13 // appearing in the file LICENSE_LGPL.txt included in the packaging of this
14 // file. In addition, as a special exception, you may use the rights described
15 // in the Nokia Qt LGPL Exception version 1.1, included in the file
16 // LGPL_EXCEPTION.txt in this package.
17 //
18 // GNU General Public License Usage
19 // Alternatively, this file may be used under the terms of the GNU General Public
20 // License version 3.0 as published by the Free Software Foundation and appearing
21 // in the file LICENSE_GPL.txt included in the packaging of this file.
22 //
23 // Other Usage
24 // Alternatively, this file may be used in accordance with the terms and conditions
25 // contained in a signed written agreement between you and Michael Wiklund.
26 //
27 // This program is distributed in the hope that it will be useful, but WITHOUT ANY
28 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
29 // PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
30 //
31 
32 #ifndef ARNPERSISTSAPI_HPP
33 #define ARNPERSISTSAPI_HPP
34 
35 #include "ArnSapi.hpp"
36 
37 
39 
41 class ArnPersistSapi : public ArnSapi
42 {
43  Q_OBJECT
44 public:
45  explicit ArnPersistSapi( QObject* parent = arnNullptr) : ArnSapi("//.sys/Persist/Pipes/CommonPipe", parent) {}
46 
47 signals:
50  void pv_vcsLog( int numLog = 100);
51  void pv_vcsFiles( QString ref = QString());
52  void pv_vcsCommit( QString commitMsg,
53  QStringList files = QStringList(),
54  QString name = QString(), QString email = QString());
55  void pv_vcsTag( QString name, QString ref = QString());
56  void pv_vcsDiff( QString ref = QString(), QStringList files = QStringList());
57  void pv_vcsLogRecord( QString ref = QString());
58  void pv_vcsTags();
59  void pv_vcsBranches();
60  void pv_vcsStatus();
61  void pv_vcsUserSettings();
62  void pv_vcsSetUserSettings( QString userName, QString userEmail);
63  void pv_vcsCheckout( QString ref = QString(), QStringList files = QStringList());
64  void pv_flush( const QString& path = QString());
65  void pv_test( QString str = "Hello", int i=10);
66  void pv_ls( QString path = QString());
67  void pv_load();
68  void pv_rm( QString path);
69  void pv_touch( QString path);
70  void pv_dbMandatory( QString path, bool isMandatory);
71  void pv_dbMandatoryLs( QString path);
72  void pv_dbLs( QString path, bool isUsed = true);
73  void pv_dbMarkUnused( QString path);
74  void pv_info();
75 
77  void rq_flushR( bool isOk, const QString& path);
78  void rq_lsR( QStringList files);
79  void rq_rmR( bool isOk);
80  void rq_touchR( bool isOk);
81  void rq_dbMandatoryR( bool isOk);
82  void rq_dbMandatoryLsR( QStringList paths);
83  void rq_dbLsR( QStringList paths);
84  void rq_dbMarkUnusedR( bool isOk);
85  void rq_infoR( QString name, QString ver);
86  void rq_vcsNotify( QString msg);
87  void rq_vcsProgress( int percent, QString msg=QString());
88  void rq_vcsUserSettingsR( QString name, QString eMail);
89  void rq_vcsFilesR( QStringList files);
90  void rq_vcsTagR();
91  void rq_vcsCommitR();
92  void rq_vcsCheckoutR();
93  void rq_vcsBranchesR( QStringList branches);
94  void rq_vcsTagsR( QStringList tags);
95  void rq_vcsStatusR( QString status);
96  void rq_vcsDiffR( QString txt);
97  void rq_vcsLogRecordR( QString txt);
98  void rq_vcsLogR( QStringList refs, QStringList msgs);
99 };
101 
102 
103 #endif // ARNPERSISTSAPI_HPP
Service API.
Definition: ArnSapi.hpp:115
#define MQ_PUBLIC_ACCESS
Definition: ArnSapi.hpp:44