00001 /* ============================================================ 00002 * This program is free software; you can redistribute it 00003 * and/or modify it under the terms of the GNU General 00004 * Public License as published bythe Free Software Foundation; 00005 * either version 2, or (at your option) 00006 * any later version. 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 * GNU General Public License for more details. 00012 * 00013 * ============================================================ */ 00014 00015 #ifndef ZMDEFINES_H 00016 #define ZMDEFINES_H 00017 00018 #include <vector> 00019 00020 // qt 00021 #include <QString> 00022 #include <QDateTime> 00023 00024 // event details 00025 typedef struct 00026 { 00027 int monitorID; 00028 int eventID; 00029 QString eventName; 00030 QString monitorName; 00031 QDateTime startTime; 00032 QString length; 00033 } Event; 00034 00035 // event frame details 00036 typedef struct 00037 { 00038 QString type; 00039 double delta; 00040 } Frame; 00041 00042 enum MonitorPalette 00043 { 00044 MP_GREY = 1, 00045 MP_RGB24 = 4 00046 }; 00047 00048 class Monitor 00049 { 00050 public: 00051 Monitor() : 00052 id(0), enabled(0), events(0), 00053 width(0), height(0), palette(0), isV4L2(false) 00054 { 00055 } 00056 00057 public: 00058 // used by console view 00059 int id; 00060 QString name; 00061 QString type; 00062 QString function; 00063 int enabled; 00064 QString device; 00065 QString zmcStatus; 00066 QString zmaStatus; 00067 int events; 00068 // used by live view 00069 QString status; 00070 int width; 00071 int height; 00072 int palette; 00073 bool isV4L2; 00074 }; 00075 00076 #endif
1.6.3