| Line 1... | Line 1... | 
          
            | 1 | #pragma once
 | 1 | #pragma once
 | 
          
            | 2 |  
 | 2 |  
 | 
          
            | - |   | 3 | #include "spkdefines.h"
 | 
          
            | 3 | #include "../Utils/String.h"
 | 4 | #include "../Utils/String.h"
 | 
          
            | - |   | 5 | #include "../Utils/List.h"
 | 
          
            | 4 | #include <map>
 | 6 | #include <map>
 | 
          
            | 5 |  
 | 7 |  
 | 
          
            | 6 | enum {PLUGIN_NORMAL, PLUGIN_STABLE, PLUGIN_EXPERIMENTAL, PLUGIN_CHEAT, PLUGIN_MOD}; // filters for browsing packages
 | 8 | enum {PLUGIN_NORMAL, PLUGIN_STABLE, PLUGIN_EXPERIMENTAL, PLUGIN_CHEAT, PLUGIN_MOD}; // filters for browsing packages
 | 
          
            | 7 |  
 | 9 |  
 | 
          
            | 8 | namespace SPK {
 | 10 | namespace SPK {
 | 
          
            | Line 27... | Line 29... | 
          
            | 27 | 	Utils::String _sFilename;
 | 29 | 	Utils::String _sFilename;
 | 
          
            | 28 | 	Utils::String _sExportFilename;
 | 30 | 	Utils::String _sExportFilename;
 | 
          
            | 29 |  
 | 31 |  
 | 
          
            | 30 | 	std::map<unsigned int, Utils::String> *_pAutoExtract;
 | 32 | 	std::map<unsigned int, Utils::String> *_pAutoExtract;
 | 
          
            | 31 | 	std::map<unsigned int, Utils::String> *_pAutoExport;
 | 33 | 	std::map<unsigned int, Utils::String> *_pAutoExport;
 | 
          
            | - |   | 34 | 	Utils::CList<SNames> *_lNames;
 | 
          
            | 32 |  
 | 35 |  
 | 
          
            | 33 | 	CInstallText *_pInstallText;
 | 36 | 	CInstallText *_pInstallText;
 | 
          
            | 34 | 	CInstallText *_pUninstallText;
 | 37 | 	CInstallText *_pUninstallText;
 | 
          
            | 35 |  
 | 38 |  
 | 
          
            | 36 | 	int _iPluginType;
 | 39 | 	int _iPluginType;
 | 
          
            | Line 63... | Line 66... | 
          
            | 63 | 	const Utils::String &exportFilename	() const { return _sExportFilename; }
 | 66 | 	const Utils::String &exportFilename	() const { return _sExportFilename; }
 | 
          
            | 64 | 	const CInstallText  *installText	() const { return _pInstallText; }
 | 67 | 	const CInstallText  *installText	() const { return _pInstallText; }
 | 
          
            | 65 | 	const CInstallText  *uninstallText	() const { return _pUninstallText; }
 | 68 | 	const CInstallText  *uninstallText	() const { return _pUninstallText; }
 | 
          
            | 66 | 	int					 pluginType		() const { return _iPluginType; }
 | 69 | 	int					 pluginType		() const { return _iPluginType; }
 | 
          
            | 67 | 	bool				 hasChanged		() const { return _bChanged; }
 | 70 | 	bool				 hasChanged		() const { return _bChanged; }
 | 
          
            | - |   | 71 | 	const Utils::String	&name			(int lange) const;
 | 
          
            | 68 | 	const std::map<unsigned int, Utils::String> *autoExtraction() const { return _pAutoExtract; }
 | 72 | 	const std::map<unsigned int, Utils::String> *autoExtraction() const { return _pAutoExtract; }
 | 
          
            | 69 | 	const std::map<unsigned int, Utils::String> *autoExporter() const { return _pAutoExport; }
 | 73 | 	const std::map<unsigned int, Utils::String> *autoExporter() const { return _pAutoExport; }
 | 
          
            | - |   | 74 | 	const Utils::CList<SNames> *namesList() const { return _lNames; }
 | 
          
            | 70 |  
 | 75 |  
 | 
          
            | 71 | 	//setters
 | 76 | 	//setters
 | 
          
            | 72 | 	void setName			( const Utils::String &str ) { _changed(); _sName = str.remove ( '|' ); }
 | 77 | 	void setName			( const Utils::String &str ) { _changed(); _sName = str.remove ( '|' ); }
 | 
          
            | 73 | 	void setVersion			( const Utils::String &str ) { _changed(); _sVersion = str; }
 | 78 | 	void setVersion			( const Utils::String &str ) { _changed(); _sVersion = str; }
 | 
          
            | 74 | 	void setAuthor			( const Utils::String &str ) { _changed(); _sAuthor = str.remove ( '|' ); }
 | 79 | 	void setAuthor			( const Utils::String &str ) { _changed(); _sAuthor = str.remove ( '|' ); }
 | 
          
            | Line 88... | Line 93... | 
          
            | 88 | 	
 | 93 | 	
 | 
          
            | 89 | 	void addAutoExtract(unsigned int game, const Utils::String &dir);
 | 94 | 	void addAutoExtract(unsigned int game, const Utils::String &dir);
 | 
          
            | 90 | 	void addAutoExport(unsigned int game, const Utils::String &file);
 | 95 | 	void addAutoExport(unsigned int game, const Utils::String &file);
 | 
          
            | 91 | 	void clearAutoExtract();
 | 96 | 	void clearAutoExtract();
 | 
          
            | 92 | 	void clearAutoExport();
 | 97 | 	void clearAutoExport();
 | 
          
            | - |   | 98 |  
 | 
          
            | - |   | 99 | 	void addName(int iLang, const Utils::String& name);
 | 
          
            | - |   | 100 | 	void removeName(int iLang);
 | 
          
            | - |   | 101 | 	void clearNames();
 | 
          
            | 93 |  
 | 102 |  
 | 
          
            | 94 | 	// install texts
 | 103 | 	// install texts
 | 
          
            | 95 | 	Utils::String installText(int iLang, bool bBefore, bool bIncludeDefault = true) const;
 | 104 | 	Utils::String installText(int iLang, bool bBefore, bool bIncludeDefault = true) const;
 | 
          
            | 96 | 	Utils::String uninstallText(int iLang, bool bBefore, bool bIncludeDefault = true) const;
 | 105 | 	Utils::String uninstallText(int iLang, bool bBefore, bool bIncludeDefault = true) const;
 | 
          
            | 97 | 	void addInstallText(int iLang, bool bBefore, const Utils::String &sText);
 | 106 | 	void addInstallText(int iLang, bool bBefore, const Utils::String &sText);
 |