tickets has been moved to a new plugin 'ticket'

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@657 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-09-29 21:24:34 +00:00
parent a589e5a090
commit a8b8c1feec
55 changed files with 2765 additions and 2523 deletions

48
plugins/ticket/ticketinfo.cpp Executable file
View File

@@ -0,0 +1,48 @@
#include "ticketinfo.h"
#include "core/error.h"
namespace Ticket
{
TicketInfo::TicketInfo()
{
Clear();
}
void TicketInfo::SetTDb(TDb * ptdb)
{
tdb = ptdb;
}
void TicketInfo::SetDb(Db * pdb)
{
db = pdb;
}
void TicketInfo::Clear()
{
item.Clear();
is_ticket = false;
ticket.Clear();
ticket_tab.clear();
}
void TicketInfo::ReadTicket(long dir_id)
{
if( tdb->GetTicketByDirId(dir_id, ticket) == WINIX_ERR_OK )
{
is_ticket = true;
db->GetItemById(ticket.item_id, item);
}
}
} // namespace