56 lines
882 B
C++
Executable File
56 lines
882 B
C++
Executable File
/*
|
|
* This file is a part of Winix
|
|
* and is not publicly distributed
|
|
*
|
|
* Copyright (c) 2010, Tomasz Sowa
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef headerfile_winix_plugins_ticket_editticket
|
|
#define headerfile_winix_plugins_ticket_editticket
|
|
|
|
#include "tdb.h"
|
|
#include "ticket.h"
|
|
#include "ticketinfo.h"
|
|
#include "functions/functionbase.h"
|
|
#include "notify/notify.h"
|
|
|
|
|
|
|
|
namespace Ticket
|
|
{
|
|
|
|
|
|
class EditTicket : public FunctionBase
|
|
{
|
|
public:
|
|
|
|
EditTicket();
|
|
void SetTDb(TDb * ptdb);
|
|
void SetTicketInfo(TicketInfo * pinfo);
|
|
|
|
bool HasAccess();
|
|
void MakePost();
|
|
void MakeGet();
|
|
|
|
private:
|
|
|
|
TDb * tdb;
|
|
TicketInfo * ticket_info;
|
|
std::wstring old_url;
|
|
NotifyMsg notify_msg;
|
|
|
|
void RemoveTmpTicket();
|
|
Ticket & PrepareTicket();
|
|
PT::Space & PrepareSpace();
|
|
void ChangeTicket(Ticket & ticket, Item & item);
|
|
void Submit(Ticket & ticket, Item & item);
|
|
|
|
};
|
|
|
|
|
|
} // namespace
|
|
|
|
#endif
|