Subversion Repositories spk

Rev

Rev 46 | Rev 49 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 46 Rev 48
Line 26... Line 26...
26
 
26
 
27
 
27
 
28
CSpkFile::CSpkFile() : CBaseFile ()
28
CSpkFile::CSpkFile() : CBaseFile ()
29
{
29
{
30
	SetDefaults ();
30
	SetDefaults ();
31
 
-
 
32
	m_iType = TYPE_SPK;
-
 
33
}
31
}
34
 
32
 
35
CSpkFile::~CSpkFile()
33
CSpkFile::~CSpkFile()
36
{
34
{
37
	Delete ();
35
	Delete ();
Line 843... Line 841...
843
void CSpkFile::MergePackage(CBaseFile *base)
841
void CSpkFile::MergePackage(CBaseFile *base)
844
{
842
{
845
	// update version information
843
	// update version information
846
	m_sVersion = base->GetVersion();
844
	m_sVersion = base->GetVersion();
847
	m_sCreationDate = base->GetCreationDate();
845
	m_sCreationDate = base->GetCreationDate();
848
	m_iPluginType = base->GetPluginType();
-
 
849
 
846
 
850
	// update possible changes
847
	// update possible changes
851
	if ( base->GetType() == TYPE_SPK )
848
	if ( base->GetType() == TYPE_SPK )
852
	{
849
	{
853
		CSpkFile *spk = (CSpkFile *)base;
850
		CSpkFile *spk = (CSpkFile *)base;
Line 892... Line 889...
892
	if ( !base->GetEmail().Empty() )
889
	if ( !base->GetEmail().Empty() )
893
		m_sEmail = base->GetEmail();
890
		m_sEmail = base->GetEmail();
894
	if ( !base->GetForumLink().Empty() )
891
	if ( !base->GetForumLink().Empty() )
895
		m_sForumLink = base->GetForumLink();
892
		m_sForumLink = base->GetForumLink();
896
 
893
 
897
	m_sDescription = base->GetDescription();
-
 
898
 
894
 
899
	// copy over needed librarys
895
	// copy over needed librarys
900
	for ( CListNode<SNeededLibrary> *lNode = base->GetNeededLibraries()->Front(); lNode; lNode = lNode->next() )
896
	for ( CListNode<SNeededLibrary> *lNode = base->GetNeededLibraries()->Front(); lNode; lNode = lNode->next() )
901
		this->AddNeededLibrary(lNode->Data()->sName, lNode->Data()->sAuthor, lNode->Data()->sMinVersion);
897
		this->AddNeededLibrary(lNode->Data()->sName, lNode->Data()->sAuthor, lNode->Data()->sMinVersion);
902
 
898
 
Line 1083... Line 1079...
1083
	else if ( sCmd == "Date:" )
1079
	else if ( sCmd == "Date:" )
1084
	{
1080
	{
1085
		this->SetCreationDate ( sRest );
1081
		this->SetCreationDate ( sRest );
1086
		CLog::logf(CLog::Log_EditPackage, "\tScript Creation Date: %s", sRest.c_str() );
1082
		CLog::logf(CLog::Log_EditPackage, "\tScript Creation Date: %s", sRest.c_str() );
1087
	}
1083
	}
1088
	else if ( sCmd == "Desc:" )
1084
	else if ( sCmd == "Desc:" ) {
1089
	{
-
 
1090
		this->SetDescription(sRest.findReplace("<br>", "\n") );
1085
		this->setDescription(sRest.findReplace("<br>", "\n") );
1091
		CLog::logf(CLog::Log_EditPackage, "\tScript Description: %s", this->GetDescription().c_str() );
1086
		CLog::logf(CLog::Log_EditPackage, "\tScript Description: %s", this->description().c_str() );
1092
	}
1087
	}
1093
	else if ( sCmd == "WebAddress:" )
1088
	else if ( sCmd == "WebAddress:" )
1094
	{
1089
	{
1095
		this->SetWebAddress ( sRest );
1090
		this->SetWebAddress ( sRest );
1096
		CLog::logf(CLog::Log_EditPackage, "\tWeb Address: %s", sRest.c_str() );
1091
		CLog::logf(CLog::Log_EditPackage, "\tWeb Address: %s", sRest.c_str() );