Debian Codegraph @

cvsservice/cvsservice.h

raw symbols SCIP
1 /*
2 * Copyright (c) 2002-2004 Christian Loose <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 *
19 */
20
21 #ifndef CVSSERVICE_H
22 #define CVSSERVICE_H
23
24 #include <QDBusObjectPath>
25 #include <qobject.h>
26 #include <qstringlist.h>
27
28 class QString;
29
30 class Q_DECL_EXPORT CvsService : public QObject
31 {
32 Q_OBJECT
33
34 public:
35 CvsService();
36 ~CvsService() override;
37
38 public Q_SLOTS:
39 /**
40 * Adds new files to an existing project. The files don't actually
41 * appear in the repository until a subsequent commit is performed.
42 *
43 * @param files A list of files that should be added to the repository.
44 * @param isBinary Set to true to treat the files as binary files (-kb)
45 *
46 * @return A DCOP reference to the cvs job or in case of failure a
47 * null reference.
48 */
49 QDBusObjectPath add(const QStringList &files, bool isBinary);
50
51 /**
52 */
53 QDBusObjectPath addWatch(const QStringList &files, int events);
54
55 /**
56 * Shows information on who last modified each line of a file and when.
57 *
58 * @param fileName the name of the file to show annotations for
59 * @param revision show annotations for this revision (number or tag)
60 *
61 * @return A DCOP reference to the cvs job or in case of failure a
62 * null reference.
63 */
64 QDBusObjectPath annotate(const QString &fileName, const QString &revision);
65
66 /**
67 * Checks out a module from the repository into a working copy.
68 *
69 * @param workingDir path to a local working copy directory
70 * @param repository
71 * @param module the name of the module
72 * @param tag
73 * @param pruneDirs remove empty directories from the working copy.
74 *
75 * @return A DCOP reference to the cvs job or in case of failure a
76 * null reference.
77 */
78 QDBusObjectPath checkout(const QString &workingDir, const QString &repository, const QString &module, const QString &tag, bool pruneDirs);
79
80 /**
81 * Checks out a module from the repository into a working copy.
82 *
83 * @param workingDir path to a local working copy directory
84 * @param repository
85 * @param module the name of the module
86 * @param tag
87 * @param pruneDirs remove empty directories from the working copy.
88 * @param alias alternative directory to check out to
89 * @param exportOnly flag to show we want a cvs export rather than a checkout
90 *
91 * @return A DCOP reference to the cvs job or in case of failure a
92 * null reference.
93 */
94 //### KDE4: merge with above checkout() method
95 QDBusObjectPath checkout(const QString &workingDir,
96 const QString &repository,
97 const QString &module,
98 const QString &tag,
99 bool pruneDirs,
100 const QString &alias,
101 bool exportOnly);
102
103 /**
104 * Checks out a module from the repository into a working copy.
105 *
106 * @param workingDir path to a local working copy directory
107 * @param repository
108 * @param module the name of the module
109 * @param tag
110 * @param pruneDirs remove empty directories from the working copy.
111 * @param alias alternative directory to check out to
112 * @param exportOnly flag to show we want a cvs export rather than a checkout
113 * @param recursive check out dirs recursively
114 *
115 * @return A DCOP reference to the cvs job or in case of failure a
116 * null reference.
117 */
118 QDBusObjectPath checkout(const QString &workingDir,
119 const QString &repository,
120 const QString &module,
121 const QString &tag,
122 bool pruneDirs,
123 const QString &alias,
124 bool exportOnly,
125 bool recursive);
126
127 /**
128 *
129 * @param files A list of files with changes that should be committed to
130 * the repository.
131 * @param commitMessage log message describing the changes
132 * @param recursive
133 *
134 * @return A DCOP reference to the cvs job or in case of failure a
135 * null reference.
136 */
137 QDBusObjectPath commit(const QStringList &files, const QString &commitMessage, bool recursive);
138
139 /**
140 * Creates a new root repository.
141 *
142 * @param repository
143 */
144 QDBusObjectPath createRepository(const QString &repository);
145
146 /**
147 */
148 QDBusObjectPath createTag(const QStringList &files, const QString &tag, bool branch, bool force);
149
150 /**
151 */
152 QDBusObjectPath deleteTag(const QStringList &files, const QString &tag, bool branch, bool force);
153
154 /**
155 */
156 QDBusObjectPath downloadCvsIgnoreFile(const QString &repository, const QString &outputFile);
157
158 /**
159 */
160 QDBusObjectPath downloadRevision(const QString &fileName, const QString &revision, const QString &outputFile);
161
162 /**
163 */
164 QDBusObjectPath downloadRevision(const QString &fileName, const QString &revA, const QString &outputFileA, const QString &revB, const QString &outputFileB);
165
166 /**
167 *
168 * @param fileName
169 * @param revA
170 * @param revB
171 * @param diffOptions
172 * @param contextLines
173 *
174 * @return A DCOP reference to the cvs job or in case of failure a
175 * null reference.
176 */
177 QDBusObjectPath diff(const QString &fileName, const QString &revA, const QString &revB, const QString &diffOptions, unsigned contextLines);
178
179 /**
180 *
181 * @param fileName
182 * @param revA
183 * @param revB
184 * @param diffOptions
185 * @param format
186 *
187 * @return A DCOP reference to the cvs job or in case of failure a
188 * null reference.
189 */
190 QDBusObjectPath diff(const QString &fileName, const QString &revA, const QString &revB, const QString &diffOptions, const QString &format);
191
192 /**
193 * @param files
194 */
195 QDBusObjectPath edit(const QStringList &files);
196
197 /**
198 * @param files
199 */
200 QDBusObjectPath editors(const QStringList &files);
201
202 /**
203 * Shows a history of activity (like checkouts, commits, etc) in the
204 * repository for all users and all record types.
205 *
206 * @return A DCOP reference to the cvs job or in case of failure a
207 * null reference.
208 */
209 QDBusObjectPath history();
210
211 /**
212 * @return A DCOP reference to the cvs job or in case of failure a
213 * null reference.
214 */
215 QDBusObjectPath import(const QString &workingDir,
216 const QString &repository,
217 const QString &module,
218 const QString &ignoreList,
219 const QString &comment,
220 const QString &vendorTag,
221 const QString &releaseTag,
222 bool importAsBinary,
223 bool useModificationTime);
224
225 /**
226 * @param files
227 */
228 QDBusObjectPath lock(const QStringList &files);
229
230 /**
231 * Shows log messages for a file.
232 *
233 * @param fileName the name of the file to show log messages for
234 *
235 * @return A DCOP reference to the cvs job or in case of failure a
236 * null reference.
237 */
238 QDBusObjectPath log(const QString &fileName);
239
240 /**
241 * @param repository
242 *
243 * @return A DCOP reference to the cvs job or in case of failure a
244 * null reference.
245 */
246 QDBusObjectPath login(const QString &repository);
247
248 /**
249 * @param repository
250 *
251 * @return A DCOP reference to the cvs job or in case of failure a
252 * null reference.
253 */
254 QDBusObjectPath logout(const QString &repository);
255
256 /**
257 */
258 QDBusObjectPath makePatch();
259
260 /**
261 */
262 //### KDE4: merge with above makePatch() method
263 QDBusObjectPath makePatch(const QString &diffOptions, const QString &format);
264
265 /**
266 * @param repository
267 *
268 * @return A DCOP reference to the cvs job or in case of failure a
269 * null reference.
270 */
271 QDBusObjectPath moduleList(const QString &repository);
272
273 /**
274 * Deletes files from the local working copy and schedules them to be
275 * removed from the repository. The files don't actually disappear from
276 * the repository until a subsequent commit is performed.
277 *
278 * @param files A list of files that should be removed from the repository.
279 * @param recursive descend into subdirectories.
280 *
281 * @return A DCOP reference to the cvs job or in case of failure a
282 * null reference.
283 */
284 QDBusObjectPath remove(const QStringList &files, bool recursive);
285
286 /**
287 */
288 QDBusObjectPath removeWatch(const QStringList &files, int events);
289
290 /**
291 */
292 QDBusObjectPath rlog(const QString &repository, const QString &module, bool recursive);
293
294 /**
295 * Shows a summary of what's been done locally, without changing the
296 * working copy. (cvs -n update)
297 *
298 * @param files
299 * @param recursive descend into subdirectories.
300 * @param createDirs
301 * @param pruneDirs
302 *
303 * @return A DCOP reference to the cvs job or in case of failure a
304 * null reference.
305 */
306 QDBusObjectPath simulateUpdate(const QStringList &files, bool recursive, bool createDirs, bool pruneDirs);
307
308 /**
309 * Shows the status of the files in the working copy.
310 *
311 * @param files
312 * @param recursive descend into subdirectories.
313 * @param tagInfo show tag information for the file.
314 *
315 * @return A DCOP reference to the cvs job or in case of failure a
316 * null reference.
317 */
318 QDBusObjectPath status(const QStringList &files, bool recursive, bool tagInfo);
319
320 /**
321 * @param files
322 */
323 QDBusObjectPath unedit(const QStringList &files);
324
325 /**
326 * @param files
327 */
328 QDBusObjectPath unlock(const QStringList &files);
329
330 /**
331 * Merges changes from the repository into the files of the
332 * working copy.
333 *
334 * @param files A list of files that should be updated.
335 * @param recursive descend into subdirectories.
336 * @param createDirs create directories that exist in the repository
337 * but not yet in the working copy.
338 * @param pruneDirs remove empty directories from the working copy.
339 * @param extraOpt
340 *
341 * @return A DCOP reference to the cvs job or in case of failure a
342 * null reference.
343 */
344 QDBusObjectPath update(const QStringList &files, bool recursive, bool createDirs, bool pruneDirs, const QString &extraOpt);
345
346 /**
347 * @param files
348 */
349 QDBusObjectPath watchers(const QStringList &files);
350
351 /**
352 * Quits the service.
353 */
354 void quit();
355
356 private:
357 struct Private;
358 Private *d;
359 };
360
361 #endif