added: parameters consist of a name and a value now

sample: /dir/dir2/function/paramname:paramvalue
removed: TemplatesMisc namespace



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@618 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-07-04 20:27:14 +00:00
parent 76e32703ac
commit 50cb88c5ed
17 changed files with 150 additions and 51 deletions

View File

@@ -19,7 +19,7 @@
namespace TemplatesNotifyFunctions
{
TemplatesMisc::Patterns patterns;
Patterns patterns;
Ezc::Functions functions;
Locale locale;
LocaleFilter locale_filter;
@@ -63,7 +63,7 @@ void TemplatesNotify::ClearPatterns()
using namespace TemplatesNotifyFunctions;
TemplatesMisc::ClearPatterns(patterns, pat_last);
TemplatesFunctions::ClearPatterns(patterns, pat_last);
}
@@ -73,7 +73,6 @@ using namespace TemplatesNotifyFunctions;
void TemplatesNotify::Read()
{
using namespace TemplatesNotifyFunctions;
using namespace TemplatesMisc;
Locale::Lang lang = Locale::StrToLang(data.locale_str);
@@ -84,7 +83,7 @@ using namespace TemplatesMisc;
ClearPatterns();
locale.Read(data.locale_dir, data.locale_dir_default);
TemplatesMisc::Read(patterns, pat_email_notify, locale, locale_filter, "notify_email.txt", true);
TemplatesFunctions::Read(patterns, pat_email_notify, locale, locale_filter, "notify_email.txt", true);
notify_msg = 0;
}

View File

@@ -43,7 +43,7 @@ namespace TemplatesNotifyFunctions
typedef std::vector<std::vector<Ezc::Pattern> > Patterns;
extern TemplatesMisc::Patterns patterns;
extern Patterns patterns;
extern NotifyMsg * notify_msg;
void notify_item_added(Info & i);