PageRenderTime 19ms CodeModel.GetById 11ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/vp_plugins/auth_plugin/auth.h

http://cupsfilter.googlecode.com/
C++ Header | 51 lines | 36 code | 13 blank | 2 comment | 0 complexity | ada45942bc1b4e6445263b2911fbb857 MD5 | raw file
 1#ifndef AUTH_H
 2#define AUTH_H
 3
 4#include <QObject>
 5#if defined(Q_OS_WIN)
 6#include <windows.h>
 7#endif
 8
 9#include <stdio.h>
10
11#include "auth_plugin.h"
12#include "mytypes.h"
13
14using namespace VPrn;
15
16class QString;
17
18#if defined(Q_OS_WIN)
19#define PLUGIN_API __declspec(dllimport)
20typedef PLUGIN_API LPWSTR (*DLLGETCURRENTUSER)(void);
21typedef PLUGIN_API LPWSTR (*DLLGETCURRENTSECLABEL)(void);
22typedef PLUGIN_API bool (*DLLISAUTHUSER)(void);
23typedef PLUGIN_API LPCTSTR (*ABOUTPLUGIN)(void);
24#endif
25
26class Auth : public QObject, Auth_plugin
27{
28    Q_OBJECT
29    Q_INTERFACES(Auth_plugin)
30
31public:
32    Auth(){}
33    void init (const QString &mandat_filename);
34    void init ();
35
36signals:
37    void error(VPrn::AppErrorType errCode,QString error_message);
38
39    void get_User_name_mandat(QString &userName,QString &userMandat);
40private:
41    QString user_name;
42    QString user_mandat;
43    QString plugin_path;
44
45    // ???????? ??? ???????????? ?? ???????
46    QString ask4System();
47
48};
49//! [0]
50
51#endif