diff options
author | Radovan Zivkovic <pivonroll@gmail.com> | 2013-10-11 10:52:19 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2014-03-11 19:55:00 +0100 |
commit | 790012e70190a4973ed81fced928793500836a69 (patch) | |
tree | b1a8216a51075a189478a726b60d413fd65b3934 | |
parent | 90600a341bbaf7054005c7142235851c6e159f32 (diff) | |
download | qt-creator-790012e70190a4973ed81fced928793500836a69.tar.gz |
PublishingItem implements IPublishingItem interface.
Change-Id: Ifcfd705119156563cf68baef5ba9c69f06fc3141
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
3 files changed, 53 insertions, 3 deletions
diff --git a/src/plugins/vcprojectmanager/interfaces/interfaces.pri b/src/plugins/vcprojectmanager/interfaces/interfaces.pri index 073bac5c04..add4158f12 100644 --- a/src/plugins/vcprojectmanager/interfaces/interfaces.pri +++ b/src/plugins/vcprojectmanager/interfaces/interfaces.pri @@ -26,4 +26,5 @@ HEADERS += \ interfaces/itoolfile.h \ interfaces/itoolfiles.h \ interfaces/iplatform.h \ - interfaces/iplatforms.h + interfaces/iplatforms.h \ + interfaces/ipublishingitem.h diff --git a/src/plugins/vcprojectmanager/interfaces/ipublishingitem.h b/src/plugins/vcprojectmanager/interfaces/ipublishingitem.h new file mode 100644 index 0000000000..18597fe4ff --- /dev/null +++ b/src/plugins/vcprojectmanager/interfaces/ipublishingitem.h @@ -0,0 +1,49 @@ +/************************************************************************** +** +** Copyright (c) 2013 Bojan Petrovic +** Copyright (c) 2013 Radovan Zivkovic +** Contact: http://www.qt-project.org/legal +** +** This file is part of Qt Creator. +** +** 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. +** +****************************************************************************/ +#ifndef VCPROJECTMANAGER_INTERNAL_IPUBLISHINGITEM_H +#define VCPROJECTMANAGER_INTERNAL_IPUBLISHINGITEM_H + +#include "../vcprojectmodel/ivcprojectnodemodel.h" + +namespace VcProjectManager { +namespace Internal { + +class IAttributeContainer; + +class IPublishingItem : public IVcProjectXMLNode +{ +public: + virtual ~IPublishingItem() {} + virtual IAttributeContainer* attributeContainer() const = 0; +}; +} // Internal +} // VcProjectManager + +#endif // VCPROJECTMANAGER_INTERNAL_IPUBLISHINGITEM_H diff --git a/src/plugins/vcprojectmanager/vcprojectmodel/publishingitem.h b/src/plugins/vcprojectmanager/vcprojectmodel/publishingitem.h index 5f2f5ee4e4..9521f17199 100644 --- a/src/plugins/vcprojectmanager/vcprojectmodel/publishingitem.h +++ b/src/plugins/vcprojectmanager/vcprojectmodel/publishingitem.h @@ -30,7 +30,7 @@ #ifndef VCPROJECTMANAGER_INTERNAL_PUBLISHINGITEM_H #define VCPROJECTMANAGER_INTERNAL_PUBLISHINGITEM_H -#include "ivcprojectnodemodel.h" +#include "../interfaces/ipublishingitem.h" #include <QHash> #include <QSharedPointer> @@ -41,7 +41,7 @@ namespace Internal { class IAttributeContainer; class GeneralAttributeContainer; -class PublishingItem : public IVcProjectXMLNode +class PublishingItem : public IPublishingItem { public: typedef QSharedPointer<PublishingItem> Ptr; |