diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2013-08-06 16:43:02 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-13 20:41:34 +0200 |
commit | 75a230610aa7f2548c0b7ef9cbacc3c5de58bccc (patch) | |
tree | c6a989861a3c98f28b530ff76f2f0dde1ec23624 /src/winextras/qwinjumplistitem.h | |
parent | a38a4318a0a6427e9a7f58aaf446ce0613924354 (diff) |
Rename QJumpList(Item) to QWinJumpList(Item)
Follow the existing QtWinExtras class naming convention.
All the other public classes are currently named QWinXxx.
Change-Id: I2509961e280b9794547e7420b941469fc8cdd2fa
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'src/winextras/qwinjumplistitem.h')
-rw-r--r-- | src/winextras/qwinjumplistitem.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/src/winextras/qwinjumplistitem.h b/src/winextras/qwinjumplistitem.h new file mode 100644 index 0000000..824cf8f --- /dev/null +++ b/src/winextras/qwinjumplistitem.h @@ -0,0 +1,91 @@ +/**************************************************************************** + ** + ** Copyright (C) 2013 Ivan Vizir <define-true-false@yandex.com> + ** Contact: http://www.qt-project.org/legal + ** + ** This file is part of the QtWinExtras module of the Qt Toolkit. + ** + ** $QT_BEGIN_LICENSE:LGPL$ + ** Commercial License Usage + ** Licensees holding valid commercial Qt licenses may use this file in + ** accordance with the commercial license agreement provided with the + ** Software or, alternatively, in accordance with the terms contained in + ** a written agreement between you and Digia. For licensing terms and + ** conditions see http://qt.digia.com/licensing. For further information + ** use the contact form at http://qt.digia.com/contact-us. + ** + ** 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. + ** + ** In addition, as a special exception, Digia gives you certain additional + ** rights. These rights are described in the Digia Qt LGPL Exception + ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. + ** + ** GNU General Public License Usage + ** Alternatively, this file may be used under the terms of the GNU + ** General Public License version 3.0 as published by the Free Software + ** Foundation and appearing in the file LICENSE.GPL included in the + ** packaging of this file. Please review the following information to + ** ensure the GNU General Public License version 3.0 requirements will be + ** met: http://www.gnu.org/copyleft/gpl.html. + ** + ** + ** $QT_END_LICENSE$ + ** + ****************************************************************************/ + +#ifndef QWINJUMPLISTITEM_H +#define QWINJUMPLISTITEM_H + +#include <QtGui/qicon.h> +#include <QtCore/qobject.h> +#include <QtCore/qstringlist.h> +#include <QtCore/qscopedpointer.h> +#include <QtWinExtras/qwinextrasglobal.h> + +QT_BEGIN_NAMESPACE + +class QWinJumpListItemPrivate; + +class Q_WINEXTRAS_EXPORT QWinJumpListItem +{ +public: + enum Type { + Unknown, + Destination, + Link, + Separator + }; + + explicit QWinJumpListItem(Type type = Unknown); + ~QWinJumpListItem(); + + void setType(Type type); + Type type() const; + void setFilePath(const QString &filePath); + QString filePath() const; + void setWorkingDirectory(const QString &workingDirectory); + QString workingDirectory() const; + void setIcon(const QIcon &icon); + QIcon icon() const; + void setTitle(const QString &title); + QString title() const; + void setDescription(const QString &description); + QString description() const; + void setArguments(const QStringList &arguments); + QStringList arguments() const; + +private: + Q_DISABLE_COPY(QWinJumpListItem) + Q_DECLARE_PRIVATE(QWinJumpListItem) + QScopedPointer<QWinJumpListItemPrivate> d_ptr; +}; + +QT_END_NAMESPACE + +#endif // QWINJUMPLISTITEM_H |