UltraScan III
us_global.h
Go to the documentation of this file.
1 #ifndef US_GLOBAL_H
3 #define US_GLOBAL_H
4 
5 #include <QSharedMemory>
6 #include <QPoint>
7 
8 #include "us_extern.h"
9 
11 
19 {
20  public:
21 
43  US_Global();
44 
50  ~US_Global();
51 
57  bool isValid() { return valid; }
58 
64  QPoint global_position( void );
65 
73  void set_global_position( const QPoint& );
74 
75 
80  QString passwd( void );
81 
85  void setPasswd( const QString& );
86 
90  void scheduleDelete( void ) { deleteFlag = true; }
91 
92  private:
93 
105  class Global
106  {
107  public:
109  char passwd[64];
110  // Add other global values as necessary
111  };
112 
114  bool valid;
116  QSharedMemory sharedMemory;
117 
118  void read_global ( void );
119  void write_global( void );
120 };
121 
122 #endif