Administration
From TaskDepender
(→Functionality) |
(→Functionality) |
||
Line 1: | Line 1: | ||
''This page describes the Administration layer of the TaskDepender™ program.'' | ''This page describes the Administration layer of the TaskDepender™ program.'' | ||
− | == | + | == Description == |
− | The Administration is an API to the [[Database|database]] that in one direction shields the GUI from handling the database transactions and in the other direction shields the Administration from being dependent on the implementation of the GUI. | + | The Administration is an API to the [[Database|database]] that in one direction shields the GUI from handling the database transactions and in the other direction shields the Administration from being dependent on the implementation of the [[GUI]]. |
== Functionality == | == Functionality == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Consistency === | === Consistency === | ||
Line 37: | Line 11: | ||
Besides the API functions, the Administration API also requires some internal methods to ensure consistency and implement the restrictions. There are: | Besides the API functions, the Administration API also requires some internal methods to ensure consistency and implement the restrictions. There are: | ||
* [[Checking cyclicity]] | * [[Checking cyclicity]] | ||
+ | |||
+ | === Other methods === | ||
+ | |||
+ | * [[Create tasks and deliverables lists]] | ||
+ | * [[Find methods]] | ||
== Design == | == Design == | ||
Line 64: | Line 43: | ||
{ | { | ||
private: | private: | ||
+ | sqlite3 *DatabaseHandle; // SQLite db handle. | ||
+ | char *DatabaseFilename; | ||
+ | |||
+ | uint EditsCounter; | ||
+ | |||
+ | uint32 AllowedActions; | ||
+ | |||
bool Cyclic( TaskC *beginTask, TaskC *endTask ); | bool Cyclic( TaskC *beginTask, TaskC *endTask ); | ||
void DeleteDeliverable( uint32 id ); | void DeleteDeliverable( uint32 id ); | ||
void DeleteTask( uint32 id ); | void DeleteTask( uint32 id ); | ||
+ | |||
+ | IntegerArrayC *SelectedTasksIds; | ||
+ | IntegerArrayC *SelectedDeliverablesIds; | ||
+ | |||
public: | public: | ||
AdminC(void); | AdminC(void); | ||
Line 74: | Line 64: | ||
DeliverablesAdminC *DeliverablesAdmin; | DeliverablesAdminC *DeliverablesAdmin; | ||
− | void | + | void DeleteSelectedElements(void); |
− | + | ||
− | + | ||
− | + | ||
void Disconnect( TaskC *task, DeliverableC *deliverable ); | void Disconnect( TaskC *task, DeliverableC *deliverable ); | ||
Line 94: | Line 81: | ||
* [[Generic types]] | * [[Generic types]] | ||
* [[Task class]] | * [[Task class]] | ||
+ | * [[Tasks administration class]] | ||
* [[Deliverable class]] | * [[Deliverable class]] | ||
+ | * [[Deliverables administration class]] |