UltraScan III
us_project.h
Go to the documentation of this file.
1 #ifndef US_PROJECT_H
3 #define US_PROJECT_H
4 
5 #include "us_extern.h"
6 #include "us_db2.h"
7 
14 {
15  public:
16 
19  {
24  BOTH
25  };
26 
27  int projectID;
28  QString projectGUID;
29  QString goals;
30  QString molecules;
31  QString purity;
32  QString expense;
33  QString bufferComponents;
34  QString saltInformation;
35  QString AUC_questions;
36  QString expDesign;
37  QString notes;
38  QString projectDesc;
39  QString status;
40 
42 
44  US_Project();
45 
48 
54  int readFromDisk( QString& );
55 
62  int readFromDB ( int, US_DB2* = 0 );
63 
65  void clear ( void );
66 
68  void saveToDisk ( void );
69 
74  int saveToDB ( US_DB2* = 0 );
75 
77  void deleteFromDisk ( void );
78 
83  void deleteFromDB ( US_DB2* = 0 );
84 
91  bool diskFilename ( const QString& , QString& );
92 
98  bool diskPath ( QString& );
99 
101  void show ( void );
102 
103  private:
104 
105  void readProjectInfo ( QXmlStreamReader& xml );
106  QString get_filename ( const QString&, bool& );
107 };
108 #endif