Line 2... |
Line 2... |
2 |
|
2 |
|
3 |
#include "../Utils/String.h"
|
3 |
#include "../Utils/String.h"
|
- |
|
4 |
#include <map>
|
4 |
|
5 |
|
5 |
enum {PLUGIN_NORMAL, PLUGIN_STABLE, PLUGIN_EXPERIMENTAL, PLUGIN_CHEAT, PLUGIN_MOD}; // filters for browsing packages
|
6 |
enum {PLUGIN_NORMAL, PLUGIN_STABLE, PLUGIN_EXPERIMENTAL, PLUGIN_CHEAT, PLUGIN_MOD}; // filters for browsing packages
|
6 |
|
7 |
|
7 |
namespace SPK {
|
8 |
namespace SPK {
|
8 |
namespace Package {
|
9 |
namespace Package {
|
Line 23... |
Line 24... |
23 |
Utils::String _sCreationDate;
|
24 |
Utils::String _sCreationDate;
|
24 |
Utils::String _sForumLink;
|
25 |
Utils::String _sForumLink;
|
25 |
|
26 |
|
26 |
Utils::String _sFilename;
|
27 |
Utils::String _sFilename;
|
27 |
Utils::String _sExportFilename;
|
28 |
Utils::String _sExportFilename;
|
- |
|
29 |
|
- |
|
30 |
std::map<unsigned int, Utils::String> *_pAutoExtract;
|
- |
|
31 |
std::map<unsigned int, Utils::String> *_pAutoExport;
|
28 |
|
32 |
|
29 |
CInstallText *_pInstallText;
|
33 |
CInstallText *_pInstallText;
|
30 |
CInstallText *_pUninstallText;
|
34 |
CInstallText *_pUninstallText;
|
31 |
|
35 |
|
32 |
int _iPluginType;
|
36 |
int _iPluginType;
|
Line 59... |
Line 63... |
59 |
const Utils::String &exportFilename () const { return _sExportFilename; }
|
63 |
const Utils::String &exportFilename () const { return _sExportFilename; }
|
60 |
const CInstallText *installText () const { return _pInstallText; }
|
64 |
const CInstallText *installText () const { return _pInstallText; }
|
61 |
const CInstallText *uninstallText () const { return _pUninstallText; }
|
65 |
const CInstallText *uninstallText () const { return _pUninstallText; }
|
62 |
int pluginType () const { return _iPluginType; }
|
66 |
int pluginType () const { return _iPluginType; }
|
63 |
bool hasChanged () const { return _bChanged; }
|
67 |
bool hasChanged () const { return _bChanged; }
|
- |
|
68 |
const std::map<unsigned int, Utils::String> *autoExtraction() const { return _pAutoExtract; }
|
- |
|
69 |
const std::map<unsigned int, Utils::String> *autoExporter() const { return _pAutoExport; }
|
64 |
|
70 |
|
65 |
//setters
|
71 |
//setters
|
66 |
void setName ( const Utils::String &str ) {
|
72 |
void setName ( const Utils::String &str ) { _changed(); _sName = str.remove ( '|' ); }
|
67 |
_changed(); _sName = str.remove ( '|' );
|
- |
|
68 |
}
|
- |
|
69 |
void setVersion ( const Utils::String &str ) { _changed(); _sVersion = str; }
|
73 |
void setVersion ( const Utils::String &str ) { _changed(); _sVersion = str; }
|
70 |
void setAuthor ( const Utils::String &str ) { _changed(); _sAuthor = str.remove ( '|' ); }
|
74 |
void setAuthor ( const Utils::String &str ) { _changed(); _sAuthor = str.remove ( '|' ); }
|
71 |
void setWebAddress ( const Utils::String &str ) { _changed(); _sWebAddress = str; }
|
75 |
void setWebAddress ( const Utils::String &str ) { _changed(); _sWebAddress = str; }
|
72 |
void setWebSite ( const Utils::String &str ) { _changed(); _sWebSite = str; }
|
76 |
void setWebSite ( const Utils::String &str ) { _changed(); _sWebSite = str; }
|
73 |
void setEmail ( const Utils::String &str ) { _changed(); _sEmail = str; }
|
77 |
void setEmail ( const Utils::String &str ) { _changed(); _sEmail = str; }
|
Line 80... |
Line 84... |
80 |
void setGameChanging ( int i ) { _changed(); _iGameChanging = i; }
|
84 |
void setGameChanging ( int i ) { _changed(); _iGameChanging = i; }
|
81 |
void setEaseOfUse ( int i ) { _changed(); _iEaseOfUse = i; }
|
85 |
void setEaseOfUse ( int i ) { _changed(); _iEaseOfUse = i; }
|
82 |
void setPluginType ( int i ) { _changed(); _iPluginType = i; }
|
86 |
void setPluginType ( int i ) { _changed(); _iPluginType = i; }
|
83 |
void adjustChanged ( bool bChanged ) { _bChanged = bChanged; }
|
87 |
void adjustChanged ( bool bChanged ) { _bChanged = bChanged; }
|
84 |
|
88 |
|
- |
|
89 |
void addAutoExtract(unsigned int game, const Utils::String &dir);
|
- |
|
90 |
void addAutoExport(unsigned int game, const Utils::String &file);
|
- |
|
91 |
void clearAutoExtract();
|
- |
|
92 |
void clearAutoExport();
|
- |
|
93 |
|
85 |
// install texts
|
94 |
// install texts
|
86 |
Utils::String installText(int iLang, bool bBefore, bool bIncludeDefault = true) const;
|
95 |
Utils::String installText(int iLang, bool bBefore, bool bIncludeDefault = true) const;
|
87 |
Utils::String uninstallText(int iLang, bool bBefore, bool bIncludeDefault = true) const;
|
96 |
Utils::String uninstallText(int iLang, bool bBefore, bool bIncludeDefault = true) const;
|
88 |
void addInstallText(int iLang, bool bBefore, const Utils::String &sText);
|
97 |
void addInstallText(int iLang, bool bBefore, const Utils::String &sText);
|
89 |
void addUninstallText(int iLang, bool bBefore, const Utils::String &sText);
|
98 |
void addUninstallText(int iLang, bool bBefore, const Utils::String &sText);
|