fixed: ticket sets a default function only for directories
fixed: reading a new url and subject in Functions::ReadItem() added: tickets are sorted now (by date) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@659 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -14,10 +14,12 @@
|
||||
#include <vector>
|
||||
#include "ticket.h"
|
||||
#include "core/item.h"
|
||||
#include "core/system.h"
|
||||
#include "db/db.h"
|
||||
#include "tdb.h"
|
||||
|
||||
|
||||
|
||||
namespace Ticket
|
||||
{
|
||||
|
||||
@@ -30,10 +32,11 @@ public:
|
||||
|
||||
void SetTDb(TDb * ptdb);
|
||||
void SetDb(Db * pdb);
|
||||
void SetSystem(System * psystem);
|
||||
|
||||
void Clear();
|
||||
void ReadTicket(long dir_id);
|
||||
|
||||
void SortTickets();
|
||||
|
||||
Item item;
|
||||
bool is_ticket;
|
||||
@@ -56,10 +59,15 @@ public:
|
||||
|
||||
int mount_par_createticket_on;
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
TDb * tdb;
|
||||
Db * db;
|
||||
System * system;
|
||||
|
||||
static bool SortTicketsFun(const Ticket & t1, const Ticket & t2);
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user