PageRenderTime 20ms CodeModel.GetById 14ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/vp_plugins/print_acpu/sqlmanager.h

http://cupsfilter.googlecode.com/
C++ Header | 53 lines | 24 code | 7 blank | 22 comment | 0 complexity | b0e6bcd00cd480814e4a72bea8b30bcb MD5 | raw file
 1#ifndef SQLMANAGER_H
 2#define SQLMANAGER_H
 3
 4#include <QObject>
 5//#include <QtSql/QSqlDatabase>
 6#include <QStandardItemModel>
 7
 8#include "message.h"
 9#include "mytypes.h"
10using namespace VPrn;
11
12class sqlManager : public QObject
13{
14    Q_OBJECT
15public:
16    explicit sqlManager(QObject *parent = 0);
17    ~sqlManager();
18    void setModel ( QStandardItemModel* model = 0 );
19
20public slots:
21    /**
22      * @fn void convertModelToMsg ( int rec_number);
23      * @brief ??????????? ???????? ?????????, ??????????? ? ??????
24      * @sa sqlManager::m_model ? ????????? ???? @sa Message
25      * @param int rec_number ????? ?????? ? ?????? ?????????? ???????? ??????????
26      */
27    void convertModelToMsg(int rec_number);
28    /**
29      * @fn void findDocCardInBase(const QString &mb, const QString &copy_number);
30      * @brief ????? ? ?? ????? ???????? ? ??????????
31      * @param QString mb          ????? ??
32      * @param QString copy_number ????? ??????????
33      * @param int     find_type   ????? ?????? (??????? ?????)
34      * 0 - ????????? ? ????????
35      * 1 - ????????? ? ????
36      * 2 - ?????
37      */
38    void findDocCardInBase(const QString &mb, const QString &copy_number,int find_type);
39
40signals:
41    void error(VPrn::AppErrorType errCode,const QString &error_message);
42    /**
43      * @fn void sendMessageToDemon( const Message &msg );
44      * @brief ???????????????? ????????? ??? ???????? ?????????? ??????
45      */
46    void sendMessageToDemon( const Message &msg );
47
48private:
49    QStandardItemModel* m_model;
50    //  void DumpError (const QSqlError & lastError);
51};
52
53#endif // SQLMANAGER_H