forked from qt-creator/qt-creator
de-inline functions from IFile
This commit is contained in:
@@ -69,6 +69,7 @@ SOURCES += mainwindow.cpp \
|
|||||||
fileiconprovider.cpp \
|
fileiconprovider.cpp \
|
||||||
mimedatabase.cpp \
|
mimedatabase.cpp \
|
||||||
icore.cpp \
|
icore.cpp \
|
||||||
|
ifile.cpp \
|
||||||
editormanager/ieditor.cpp \
|
editormanager/ieditor.cpp \
|
||||||
dialogs/ioptionspage.cpp \
|
dialogs/ioptionspage.cpp \
|
||||||
dialogs/iwizard.cpp \
|
dialogs/iwizard.cpp \
|
||||||
|
|||||||
49
src/plugins/coreplugin/ifile.cpp
Normal file
49
src/plugins/coreplugin/ifile.cpp
Normal file
@@ -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
|
||||||
@@ -80,8 +80,8 @@ public:
|
|||||||
FlagIgnore
|
FlagIgnore
|
||||||
};
|
};
|
||||||
|
|
||||||
IFile(QObject *parent = 0) : QObject(parent) {}
|
IFile(QObject *parent = 0);
|
||||||
virtual ~IFile() {}
|
virtual ~IFile();
|
||||||
|
|
||||||
virtual bool save(QString *errorString, const QString &fileName = QString()) = 0;
|
virtual bool save(QString *errorString, const QString &fileName = QString()) = 0;
|
||||||
virtual QString fileName() const = 0;
|
virtual QString fileName() const = 0;
|
||||||
@@ -98,7 +98,7 @@ public:
|
|||||||
virtual bool reload(QString *errorString, ReloadFlag flag, ChangeType type) = 0;
|
virtual bool reload(QString *errorString, ReloadFlag flag, ChangeType type) = 0;
|
||||||
virtual void rename(const QString &newName) = 0;
|
virtual void rename(const QString &newName) = 0;
|
||||||
|
|
||||||
virtual void checkPermissions() {}
|
virtual void checkPermissions();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void changed();
|
void changed();
|
||||||
|
|||||||
Reference in New Issue
Block a user