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