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:
48
plugins/ticket/ticketinfo.cpp
Executable file
48
plugins/ticket/ticketinfo.cpp
Executable 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
|
Reference in New Issue
Block a user