mirror of
https://github.com/ModOrganizer2/modorganizer-uibase.git
synced 2026-07-27 14:03:49 -07:00
62 lines
1.7 KiB
C++
62 lines
1.7 KiB
C++
/*
|
|
Mod Organizer shared UI functionality
|
|
|
|
Copyright (C) 2012 Sebastian Herbord. All rights reserved.
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 3 of the License, or (at your option) any later version.
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with this library; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef IINSTANCE_H
|
|
#define IINSTANCE_H
|
|
|
|
#include <QString>
|
|
|
|
namespace MOBase
|
|
{
|
|
class IPluginGame;
|
|
|
|
/**
|
|
* @brief Represents a Mod Organizer instance, either global or portable.
|
|
*/
|
|
class IInstance
|
|
{
|
|
public:
|
|
/**
|
|
* @return The instance name; this is the directory name or "Portable" for portable
|
|
* instances.
|
|
*/
|
|
virtual QString displayName() const = 0;
|
|
|
|
/**
|
|
* @return The name of the game managed by this instance, or an empty string if the
|
|
* INI file could not be read.
|
|
*/
|
|
virtual QString gameName() const = 0;
|
|
|
|
/**
|
|
* @return The directory where the game is installed, or an empty string if the INI
|
|
* file could not be read.
|
|
*/
|
|
virtual QString gameDirectory() const = 0;
|
|
|
|
/**
|
|
* @return true if this is a portable instance, false if it is a global one.
|
|
*/
|
|
virtual bool isPortable() const = 0;
|
|
};
|
|
} // namespace MOBase
|
|
|
|
#endif // IINSTANCE_H
|