Subversion Repositories spk

Rev

Rev 50 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 50 Rev 206
Line 1... Line 1...
1
#pragma once
1
#pragma once
2
 
2
 
3
#include <Utils/String.h>
-
 
4
#include "lists.h"
3
#include "lists.h"
-
 
4
#include <Utils/WString.h>
5
 
5
 
6
namespace SPK {
6
namespace SPK {
7
namespace Package {
7
namespace Package {
8
 
8
 
9
class SPKEXPORT CInstallText
9
class SPKEXPORT CInstallText
10
{
10
{
11
private:
11
private:
12
	typedef struct SInstallText {
12
	typedef struct SInstallText {
13
		int				iLanguage;
13
		int				iLanguage;
14
		Utils::String	sBefore;
14
		Utils::WString	sBefore;
15
		Utils::String	sAfter;
15
		Utils::WString	sAfter;
16
	} SInstallText;
16
	} SInstallText;
17
 
17
 
18
public:
18
public:
19
	typedef CLinkList<SInstallText> TextList;
19
	typedef CLinkList<SInstallText> TextList;
20
	typedef CListNode<SInstallText>* TextNode;
20
	typedef CListNode<SInstallText>* TextNode;
Line 26... Line 26...
26
 
26
 
27
public:
27
public:
28
	CInstallText(void);
28
	CInstallText(void);
29
	virtual ~CInstallText(void);
29
	virtual ~CInstallText(void);
30
 
30
 
31
	void add(int iLang, const Utils::String &sBefore, const Utils::String &sAfter);
31
	void add(int iLang, const Utils::WString &sBefore, const Utils::WString &sAfter);
32
	void addBefore(int iLang, const Utils::String &sBefore);
32
	void addBefore(int iLang, const Utils::WString &sBefore);
33
	void addAfter(int iLang, const Utils::String &sAfter);
33
	void addAfter(int iLang, const Utils::WString &sAfter);
34
 
34
 
35
	void remove(int iLang);
35
	void remove(int iLang);
36
	void removeBefore(int iLang);
36
	void removeBefore(int iLang);
37
	void removeAfter(int iLang);
37
	void removeAfter(int iLang);
38
 
38
 
39
	Utils::String getBefore(int iLang, bool bIncludeDefault = true) const;
39
	Utils::WString getBefore(int iLang, bool bIncludeDefault = true) const;
40
	Utils::String getAfter(int iLang, bool bIncludeDefault = true) const;
40
	Utils::WString getAfter(int iLang, bool bIncludeDefault = true) const;
41
	bool	any() const;
41
	bool any() const;
42
 
42
 
43
	void merge(const CInstallText *pText);
43
	void merge(const CInstallText *pText);
44
	unsigned int count() const;
44
	unsigned int count() const;
45
	int language(unsigned int iPos) const;
45
	int language(unsigned int iPos) const;
46
 
46