OSDN Git Service

Update license.
[qt-creator-jp/qt-creator-jp.git] / src / plugins / qt4projectmanager / qt-maemo / maemosshconfigdialog.h
1 /**************************************************************************
2 **
3 ** This file is part of Qt Creator
4 **
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
6 **
7 ** Contact: Nokia Corporation (info@qt.nokia.com)
8 **
9 ** GNU Lesser General Public License Usage
10 **
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 included in the packaging of this file.
14 ** Please review the following information to ensure the GNU Lesser General
15 ** Public License version 2.1 requirements will be met:
16 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
17 **
18 ** In addition, as a special exception, Nokia gives you certain additional
19 ** rights. These rights are described in the Nokia Qt LGPL Exception
20 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
21 **
22 ** Other Usage
23 **
24 ** Alternatively, this file may be used in accordance with the terms and
25 ** conditions contained in a signed written agreement between you and Nokia.
26 **
27 ** If you have questions regarding the use of this file, please contact
28 ** Nokia at qt-info@nokia.com.
29 **
30 **************************************************************************/
31
32 #ifndef MAEMOSSHCONFIGDIALOG_H
33 #define MAEMOSSHCONFIGDIALOG_H
34
35 #include "ui_maemosshconfigdialog.h"
36
37 #include <QtCore/QScopedPointer>
38 #include <QtGui/QDialog>
39
40 namespace Utils {
41     class SshKeyGenerator;
42 }
43
44 namespace Qt4ProjectManager {
45     namespace Internal {
46
47 class MaemoSshConfigDialog : public QDialog
48 {
49     Q_OBJECT
50 public:
51     MaemoSshConfigDialog(QWidget *parent = 0);
52     ~MaemoSshConfigDialog();
53
54 signals:
55     void privateKeyGenerated(const QString &path);
56
57 private slots:
58     void slotToggled();
59     void generateSshKey();
60     void savePublicKey();
61     void savePrivateKey();
62
63 private:
64     void checkSshDir();
65     void saveKey(bool publicKey);
66
67 private:
68     QString home;
69     QScopedPointer<Utils::SshKeyGenerator> m_keyGenerator;
70     Ui::MaemoSshConfigDialog m_ui;
71 };
72
73     }   // Qt4ProjectManager
74 }   // Internal
75
76 #endif  // MAEMOSSHCONFIGDIALOG_H