From 801e5a2fddcf5f11bf68f32fbd3e0fcac79b2dc9 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 15 Apr 2011 11:49:11 +0200 Subject: [PATCH] de-inline functions from IFile --- src/plugins/coreplugin/coreplugin.pro | 1 + src/plugins/coreplugin/ifile.cpp | 49 +++++++++++++++++++++++++++ src/plugins/coreplugin/ifile.h | 6 ++-- 3 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 src/plugins/coreplugin/ifile.cpp diff --git a/src/plugins/coreplugin/coreplugin.pro b/src/plugins/coreplugin/coreplugin.pro index 2f9beb37d64..a26e042410a 100644 --- a/src/plugins/coreplugin/coreplugin.pro +++ b/src/plugins/coreplugin/coreplugin.pro @@ -69,6 +69,7 @@ SOURCES += mainwindow.cpp \ fileiconprovider.cpp \ mimedatabase.cpp \ icore.cpp \ + ifile.cpp \ editormanager/ieditor.cpp \ dialogs/ioptionspage.cpp \ dialogs/iwizard.cpp \ diff --git a/src/plugins/coreplugin/ifile.cpp b/src/plugins/coreplugin/ifile.cpp new file mode 100644 index 00000000000..099dc38ff93 --- /dev/null +++ b/src/plugins/coreplugin/ifile.cpp @@ -0,0 +1,49 @@ +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (info@qt.nokia.com) +** +** +** GNU Lesser General Public License Usage +** +** 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, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** 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. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +**************************************************************************/ + +#include "ifile.h" + +namespace Core { + +IFile::IFile(QObject *parent) : QObject(parent) +{ +} + +IFile::~IFile() +{ +} + +void IFile::checkPermissions() +{ +} + +} // namespace Core diff --git a/src/plugins/coreplugin/ifile.h b/src/plugins/coreplugin/ifile.h index b7b91ff3001..88262348e31 100644 --- a/src/plugins/coreplugin/ifile.h +++ b/src/plugins/coreplugin/ifile.h @@ -80,8 +80,8 @@ public: FlagIgnore }; - IFile(QObject *parent = 0) : QObject(parent) {} - virtual ~IFile() {} + IFile(QObject *parent = 0); + virtual ~IFile(); virtual bool save(QString *errorString, const QString &fileName = QString()) = 0; virtual QString fileName() const = 0; @@ -98,7 +98,7 @@ public: virtual bool reload(QString *errorString, ReloadFlag flag, ChangeType type) = 0; virtual void rename(const QString &newName) = 0; - virtual void checkPermissions() {} + virtual void checkPermissions(); signals: void changed();