processextractor.h

Go to the documentation of this file.
00001 
00006 #ifndef PROCESSEXTRACTOR_H
00007 #define PROCESSEXTRACTOR_H
00008 #include <stdlib.h>
00009 #include <signal.h>
00010 #include <stdio.h>
00011 #include <string.h>
00012 #include <string>
00013 #include <iostream>
00014 #include <sqlite3.h>
00015 #include <process.h>
00016 #include <QtGui>
00017 
00018 
00019 #define OPFILEPATH "/tmp/op_process_manager"
00020 #define DBNAME "/tmp/temp_process_manager_db.db"
00021 #define BUFFER 4096
00022 
00023 class ProcessExtractor
00024 {
00025 private:
00026     sqlite3 *db;
00027 
00028     int executeProcess();
00029     int insertIntoDB(std::string);
00030     int connectToDB(int flag);
00031     void closeDB();
00032 
00033 public:
00034     ProcessExtractor();
00035     ~ProcessExtractor();
00036     void addToDatabase();
00037     QList<Process> getList();
00038 
00039 };
00040 
00041 #endif // PROCESSEXTRACTOR_H

Generated on Sat Apr 17 16:28:53 2010 for ProcessViewer by  doxygen 1.4.7