2009-03-19 17:40:01 +01:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2011-01-11 16:28:15 +01:00
|
|
|
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
2009-03-19 17:40:01 +01:00
|
|
|
**
|
2011-11-02 15:59:12 +01:00
|
|
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
2009-03-19 17:40:01 +01:00
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** This file may be used under the terms of the GNU Lesser General Public
|
|
|
|
|
** License version 2.1 as published by the Free Software Foundation and
|
|
|
|
|
** appearing in the file LICENSE.LGPL included in the packaging of this file.
|
|
|
|
|
** Please review the following information to ensure the GNU Lesser General
|
|
|
|
|
** Public License version 2.1 requirements will be met:
|
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2009-03-19 17:40:01 +01:00
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
2011-04-13 08:42:33 +02:00
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
2010-12-17 16:01:08 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Other Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
|
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
|
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** If you have questions regarding the use of this file, please contact
|
2011-11-02 15:59:12 +01:00
|
|
|
** Nokia at qt-info@nokia.com.
|
2009-03-19 17:40:01 +01:00
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
2010-04-12 16:34:21 +02:00
|
|
|
#ifndef COMMONVCSSETTINGS_H
|
|
|
|
|
#define COMMONVCSSETTINGS_H
|
2009-03-19 17:40:01 +01:00
|
|
|
|
|
|
|
|
#include <QtCore/QString>
|
|
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QSettings;
|
2009-03-20 14:20:28 +01:00
|
|
|
class QDebug;
|
2009-03-19 17:40:01 +01:00
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
namespace VCSBase {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
// Common VCS settings, message check script and user nick names.
|
2011-12-08 13:07:00 +01:00
|
|
|
class CommonVcsSettings
|
2010-04-12 16:34:21 +02:00
|
|
|
{
|
2011-12-08 13:07:00 +01:00
|
|
|
public:
|
2010-04-12 16:34:21 +02:00
|
|
|
CommonVcsSettings();
|
2009-03-19 17:40:01 +01:00
|
|
|
|
|
|
|
|
QString nickNameMailMap;
|
|
|
|
|
QString nickNameFieldListFile;
|
|
|
|
|
|
|
|
|
|
QString submitMessageCheckScript;
|
|
|
|
|
|
2010-05-21 17:46:00 +02:00
|
|
|
// Executable run to graphically prompt for a SSH-password.
|
|
|
|
|
QString sshPasswordPrompt;
|
|
|
|
|
|
2011-03-24 15:44:39 +01:00
|
|
|
QString patchCommand;
|
|
|
|
|
|
2009-03-20 14:20:28 +01:00
|
|
|
bool lineWrap;
|
|
|
|
|
int lineWrapWidth;
|
|
|
|
|
|
2009-03-19 17:40:01 +01:00
|
|
|
void toSettings(QSettings *) const;
|
|
|
|
|
void fromSettings(QSettings *);
|
|
|
|
|
|
2010-04-12 16:34:21 +02:00
|
|
|
bool equals(const CommonVcsSettings &rhs) const;
|
2009-03-19 17:40:01 +01:00
|
|
|
};
|
|
|
|
|
|
2010-04-12 16:34:21 +02:00
|
|
|
inline bool operator==(const CommonVcsSettings &s1, const CommonVcsSettings &s2) { return s1.equals(s2); }
|
|
|
|
|
inline bool operator!=(const CommonVcsSettings &s1, const CommonVcsSettings &s2) { return !s1.equals(s2); }
|
|
|
|
|
|
|
|
|
|
QDebug operator<<(QDebug, const CommonVcsSettings &);
|
2009-03-19 17:40:01 +01:00
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace VCSBase
|
|
|
|
|
|
2010-04-12 16:34:21 +02:00
|
|
|
#endif // COMMONVCSSETTINGS_H
|