Debian Codegraph @

cvsservice/repository.h

raw symbols SCIP
1 /*
2 * Copyright (c) 2002-2003 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 REPOSITORY_H
22 #define REPOSITORY_H
23
24 #include <qobject.h>
25
26 class QString;
27
28 /**
29 * Represents a local or remote cvs repository with
30 * its repository-specific configuration data.
31 */
32 class Q_DECL_EXPORT Repository : public QObject
33 {
34 Q_OBJECT
35 public:
36 Repository();
37 explicit Repository(const QString &repository);
38 ~Repository() override;
39
40 public Q_SLOTS:
41 /**
42 * cvs command (including the user-specified path) with the options
43 * for this repository.
44 *
45 * @return A cvs command (including path).
46 */
47 QString cvsClient() const;
48
49 /**
50 */
51 QString clientOnly() const;
52
53 /**
54 * Remote shell command line client which should be used to
55 * access the remote cvs repository, when :ext: access method
56 * is specified. ($CVS_RSH)
57 *
58 * @return The remote shell client. Can be null if not set.
59 */
60 QString rsh() const;
61
62 /**
63 * Program to start on the server side when accessing a remote
64 * repository using :ext: access method. ($CVS_SERVER)
65 *
66 * @return The server program. Can be null if not set.
67 */
68 QString server() const;
69
70 /**
71 * Changes the working copy and the corresponding cvs repository.
72 *
73 * @param dirName path to the local working copy directory.
74 */
75 bool setWorkingCopy(const QString &dirName);
76
77 /**
78 * Path to the current working copy.
79 *
80 * @return The working copy directory. Can be null if not set.
81 */
82 QString workingCopy() const;
83
84 /**
85 * Path and method to access the current cvs repository.
86 * i.e. :pserver:[email protected]:/home/project
87 *
88 * @return The path and method to access the cvs repository.
89 */
90 QString location() const;
91
92 /**
93 */
94 bool retrieveCvsignoreFile() const;
95
96 private Q_SLOTS:
97 void slotConfigDirty(const QString &fileName);
98
99 private:
100 struct Private;
101 Private *d;
102 };
103
104 #endif