diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-03-19 17:40:01 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-03-19 17:44:50 +0100 |
commit | 27cb595bbb6bb6a44d4a16a4d9a367820db80925 (patch) | |
tree | e6695f97d4381cd4877d385954f9847e095c779f /src/plugins/vcsbase/vcsbasesettings.h | |
parent | 40eab8980b978557c72ee534530db347185d275a (diff) | |
download | qt-creator-27cb595bbb6bb6a44d4a16a4d9a367820db80925.tar.gz |
Fixes: Add common configuration to the VCSA base plugin; submit message check script and user name configuration. Details: Extend submit editor widget by configureable fields. Use them in the VCS base submit editor to specify users, provide completion and selection dialog for them.
Diffstat (limited to 'src/plugins/vcsbase/vcsbasesettings.h')
-rw-r--r-- | src/plugins/vcsbase/vcsbasesettings.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/plugins/vcsbase/vcsbasesettings.h b/src/plugins/vcsbase/vcsbasesettings.h new file mode 100644 index 0000000000..b4efd59d33 --- /dev/null +++ b/src/plugins/vcsbase/vcsbasesettings.h @@ -0,0 +1,66 @@ +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Qt Software Information (qt-info@nokia.com) +** +** Commercial Usage +** +** Licensees holding valid Qt Commercial licenses may use this file in +** accordance with the Qt Commercial License Agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Nokia. +** +** GNU Lesser General Public License Usage +** +** Alternatively, 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. +** +** If you are unsure which license is appropriate for your use, please +** contact the sales department at qt-sales@nokia.com. +** +**************************************************************************/ + +#ifndef VCSBASESETTINGS_H +#define VCSBASESETTINGS_H + +#include <QtCore/QString> +#include <QtGui/QWidget> + +QT_BEGIN_NAMESPACE +class QSettings; +QT_END_NAMESPACE + +namespace VCSBase { +namespace Internal { + +// Common VCS settings, message check script and user nick names. +struct VCSBaseSettings { + VCSBaseSettings(); + + bool promptForSubmit; + + QString nickNameMailMap; + QString nickNameFieldListFile; + + QString submitMessageCheckScript; + + void toSettings(QSettings *) const; + void fromSettings(QSettings *); + + bool equals(const VCSBaseSettings &rhs) const; +}; + +inline bool operator==(const VCSBaseSettings &s1, const VCSBaseSettings &s2) { return s1.equals(s2); } +inline bool operator!=(const VCSBaseSettings &s1, const VCSBaseSettings &s2) { return !s1.equals(s2); } + +} // namespace Internal +} // namespace VCSBase + +#endif // VCSBASESETTINGS_H |