2011-11-25 05:51:55 +01:00
|
|
|
/*
|
|
|
|
* This file is a part of Winix
|
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
2012-01-12 03:24:08 +01:00
|
|
|
* Copyright (c) 2011-2012, Tomasz Sowa
|
2011-11-25 05:51:55 +01:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef headerfile_winix_functions_meta
|
|
|
|
#define headerfile_winix_functions_meta
|
|
|
|
|
|
|
|
#include "functionbase.h"
|
2012-05-01 00:53:54 +02:00
|
|
|
#include "space/spaceparser.h"
|
2011-11-25 05:51:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
namespace Fun
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
class Meta : public FunctionBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
Meta();
|
|
|
|
|
|
|
|
bool HasAccess();
|
|
|
|
void MakePost();
|
2012-11-04 22:01:02 +01:00
|
|
|
|
|
|
|
bool EditAdminMeta(long item_id, const std::wstring & meta_str, bool use_ses_log = false);
|
|
|
|
bool EditMeta(long item_id, const std::wstring & meta_str, bool use_ses_log = false);
|
2011-11-25 05:51:55 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2012-05-01 00:53:54 +02:00
|
|
|
PT::SpaceParser conf_parser;
|
2012-01-12 03:24:08 +01:00
|
|
|
PT::Space space;
|
2012-11-04 22:01:02 +01:00
|
|
|
|
|
|
|
bool Parse(const std::wstring & meta_str);
|
|
|
|
void ChangeAdminMeta();
|
|
|
|
void ChangeMeta();
|
|
|
|
|
2011-11-25 05:51:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|