~ubuntu-branches/ubuntu/intrepid/kdesdk/intrepid-updates

« back to all changes in this revision

Viewing changes to cervisia/addrepositorydlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-28 10:11:43 UTC
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: james.westby@ubuntu.com-20080528101143-gzc3styjz1b70zxu
Tags: upstream-4.0.80
ImportĀ upstreamĀ versionĀ 4.0.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Copyright (C) 1999-2002 Bernd Gehrmann
3
 
 *                          bernd@mail.berlios.de
4
 
 *  Copyright (c) 2002-2004 Christian Loose <christian.loose@kdemail.net>
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19
 
 */
20
 
 
21
 
 
22
 
#ifndef ADDREPOSITORYDLG_H
23
 
#define ADDREPOSITORYDLG_H
24
 
 
25
 
#include <kdialogbase.h>
26
 
 
27
 
class QCheckBox;
28
 
class KConfig;
29
 
class KIntNumInput;
30
 
class KLineEdit;
31
 
 
32
 
 
33
 
class AddRepositoryDialog : public KDialogBase
34
 
{
35
 
    Q_OBJECT
36
 
 
37
 
public:
38
 
    AddRepositoryDialog(KConfig& cfg, const QString& repo, QWidget* parent = 0,
39
 
                         const char* name = 0);
40
 
    virtual ~AddRepositoryDialog();
41
 
 
42
 
    void setRepository(const QString& repo);
43
 
    void setRsh(const QString& rsh);
44
 
    void setServer(const QString& server);
45
 
    void setCompression(int compression);
46
 
    void setRetrieveCvsignoreFile(bool enabled);
47
 
    
48
 
    QString repository() const;
49
 
    QString rsh() const;
50
 
    QString server() const;
51
 
    int compression() const;
52
 
    bool retrieveCvsignoreFile() const;
53
 
 
54
 
private slots:
55
 
    void repoChanged();
56
 
    void compressionToggled(bool checked);
57
 
    
58
 
private:
59
 
    KLineEdit*    repo_edit;
60
 
    KLineEdit*    rsh_edit;
61
 
    KLineEdit*    server_edit;
62
 
    QCheckBox*    m_useDifferentCompression;
63
 
    QCheckBox*    m_retrieveCvsignoreFile;
64
 
    KIntNumInput* m_compressionLevel;
65
 
    KConfig&      partConfig;
66
 
};
67
 
 
68
 
#endif
69
 
 
70
 
 
71
 
// Local Variables:
72
 
// c-basic-offset: 4
73
 
// End: