there'll be some generic config files for winix added: a new file in etc directory: time_zones_file list of time zones (not finished yet -- daylight saving time is needed) added: option to config: etc_dir a directory in which there are some config files used mainly when winix starts default: empty (means not for using) added: option to config: time_zones_file a file in etc_dir with time zones info default: time_zones.conf this is a Space structure with all time zones added: to system: TimeZones struct list of time zones read from etc/time_zones.conf git-svn-id: svn://ttmath.org/publicrep/winix/trunk@849 e52654a7-88a9-db11-a3e9-0013d4bc506e
49 lines
960 B
C++
Executable File
49 lines
960 B
C++
Executable File
/*
|
|
* This file is a part of Winix
|
|
* and is not publicly distributed
|
|
*
|
|
* Copyright (c) 2010-2012, Tomasz Sowa
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef headerfile_winix_templates_misc
|
|
#define headerfile_winix_templates_misc
|
|
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include "localefilter.h"
|
|
#include "ezc.h"
|
|
#include "htmltextstream.h"
|
|
|
|
struct User;
|
|
|
|
|
|
namespace TemplatesFunctions
|
|
{
|
|
|
|
|
|
typedef Ezc::Functions<HtmlTextStream> EzcFun;
|
|
typedef Ezc::Generator<HtmlTextStream> EzcGen;
|
|
typedef Ezc::FunInfo<HtmlTextStream> Info;
|
|
|
|
template<class RawType>
|
|
HtmlTextStream::RawText<RawType> R(const RawType & par)
|
|
{
|
|
return HtmlTextStream::RawText<RawType>(par);
|
|
}
|
|
|
|
|
|
void HtmlEscapeFormTxt(HtmlTextStream & out, const std::wstring & in);
|
|
|
|
void print_hour_min(Info & i, time_t time);
|
|
void print_date_nice(Info & i, const PT::Date & date);
|
|
void print_user_name(Info & i, const User * puser, const std::wstring & guest_name);
|
|
|
|
|
|
} // namespace TemplatesFunctions
|
|
|
|
#endif
|
|
|