Skip to content

Commit

Permalink
Merge 9e4430e into fe89380
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Dec 5, 2018
2 parents fe89380 + 9e4430e commit d8fb868
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/plugins/datastoreinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extern "C" Q_DECL_EXPORT int dataStoreInterfaceVersion()
{
// Version of the data store interface

return 5;
return 4;
}

//==============================================================================
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/datastoreinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class DataStoreExporterWorker : public QObject
void done(DataStoreExportData *pDataStoreData, const QString &pErrorMessage);

public slots:
virtual void run() = 0;
virtual void run() = 0;
};

//==============================================================================
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/support/COMBINESupport/src/combinefilemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ CombineFileManager * CombineFileManager::instance()

//==============================================================================

bool CombineFileManager::isCombineArchive(const QString &pFileName)
bool CombineFileManager::isCombineArchive(const QString &pFileName) const
{
// Return whether the given file is a COMBINE archive

Expand All @@ -54,11 +54,11 @@ bool CombineFileManager::isCombineArchive(const QString &pFileName)

//==============================================================================

CombineArchive * CombineFileManager::combineArchive(const QString &pFileName)
CombineArchive * CombineFileManager::combineArchive(const QString &pFileName) const
{
// Return the CombineArchive object, if any, associated with the given file

return static_cast<CombineArchive *>(instance()->file(pFileName));
return static_cast<CombineArchive *>(file(pFileName));
}

//==============================================================================
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/support/COMBINESupport/src/combinefilemanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class COMBINESUPPORT_EXPORT CombineFileManager : public StandardSupport::Standar
public:
static CombineFileManager * instance();

bool isCombineArchive(const QString &pFileName);
bool isCombineArchive(const QString &pFileName) const;

CombineArchive * combineArchive(const QString &pFileName);
CombineArchive * combineArchive(const QString &pFileName) const;

protected:
bool canLoad(const QString &pFileName) const override;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/support/CellMLSupport/src/cellmlfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct CellmlFileException
QString message() const;

private:
QString mMessage;
QString mMessage;
};

//==============================================================================
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/support/CellMLSupport/src/cellmlfilemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CellmlFileManager * CellmlFileManager::instance()

//==============================================================================

bool CellmlFileManager::isCellmlFile(const QString &pFileName)
bool CellmlFileManager::isCellmlFile(const QString &pFileName) const
{
// Return whether the given file is a CellML file

Expand All @@ -59,11 +59,11 @@ bool CellmlFileManager::isCellmlFile(const QString &pFileName)

//==============================================================================

CellmlFile * CellmlFileManager::cellmlFile(const QString &pFileName)
CellmlFile * CellmlFileManager::cellmlFile(const QString &pFileName) const
{
// Return the CellmlFile object, if any, associated with the given file

return static_cast<CellmlFile *>(instance()->file(pFileName));
return static_cast<CellmlFile *>(file(pFileName));
}

//==============================================================================
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/support/CellMLSupport/src/cellmlfilemanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ class CELLMLSUPPORT_EXPORT CellmlFileManager : public StandardSupport::StandardF
public:
static CellmlFileManager * instance();

bool isCellmlFile(const QString &pFileName);
bool isCellmlFile(const QString &pFileName) const;

CellmlFile * cellmlFile(const QString &pFileName);
CellmlFile * cellmlFile(const QString &pFileName) const;

protected:
bool canLoad(const QString &pFileName) const override;
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/support/SEDMLSupport/src/sedmlfilemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ SedmlFileManager * SedmlFileManager::instance()

//==============================================================================

bool SedmlFileManager::isSedmlFile(const QString &pFileName)
bool SedmlFileManager::isSedmlFile(const QString &pFileName) const
{
// Return whether the given file is a SED-ML file

Expand All @@ -61,11 +61,11 @@ bool SedmlFileManager::isSedmlFile(const QString &pFileName)

//==============================================================================

SedmlFile * SedmlFileManager::sedmlFile(const QString &pFileName)
SedmlFile * SedmlFileManager::sedmlFile(const QString &pFileName) const
{
// Return the SedmlFile object, if any, associated with the given file

return static_cast<SedmlFile *>(instance()->file(pFileName));
return static_cast<SedmlFile *>(file(pFileName));
}

//==============================================================================
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/support/SEDMLSupport/src/sedmlfilemanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class SEDMLSUPPORT_EXPORT SedmlFileManager : public StandardSupport::StandardFil
public:
static SedmlFileManager * instance();

bool isSedmlFile(const QString &pFileName);
bool isSedmlFile(const QString &pFileName) const;

SedmlFile * sedmlFile(const QString &pFileName);
SedmlFile * sedmlFile(const QString &pFileName) const;

protected:
bool canLoad(const QString &pFileName) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ StandardFileManager::~StandardFileManager()

//==============================================================================

bool StandardFileManager::isFile(const QString &pFileName, bool pForceChecking)
bool StandardFileManager::isFile(const QString &pFileName, bool pForceChecking) const
{
// If the given file is already managed, then we consider that it's of the
// right type (e.g. CellML file), even though it may not be of the right
Expand Down Expand Up @@ -91,7 +91,7 @@ bool StandardFileManager::isFile(const QString &pFileName, bool pForceChecking)

//==============================================================================

bool StandardFileManager::isFile(const QString &pFileName)
bool StandardFileManager::isFile(const QString &pFileName) const
{
// Check whether the given file is of the right type, i.e. whether it can be
// loaded
Expand All @@ -101,7 +101,7 @@ bool StandardFileManager::isFile(const QString &pFileName)

//==============================================================================

StandardFile * StandardFileManager::file(const QString &pFileName)
StandardFile * StandardFileManager::file(const QString &pFileName) const
{
// Return the File object, if any, associated with the given file

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/support/StandardSupport/src/standardfilemanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class STANDARDSUPPORT_EXPORT StandardFileManager : public QObject
Q_OBJECT

public:
bool isFile(const QString &pFileName);
bool isFile(const QString &pFileName) const;

StandardFile * file(const QString &pFileName);
StandardFile * file(const QString &pFileName) const;

protected:
QMap<QString, StandardFile *> mFiles;
Expand All @@ -60,7 +60,7 @@ class STANDARDSUPPORT_EXPORT StandardFileManager : public QObject
virtual StandardFile * create(const QString &pFileName) const = 0;

private:
bool isFile(const QString &pFileName, bool pForceChecking);
bool isFile(const QString &pFileName, bool pForceChecking) const;

void reload(const QString &pFileName, bool pForceChecking);

Expand Down

0 comments on commit d8fb868

Please sign in to comment.