0.1.3b
git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@4 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
8
src/lib/KdePlugin.cpp
Normal file
8
src/lib/KdePlugin.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
#include "KdePlugin.h"
|
||||
|
||||
bool CKdePlugin::resolveSymbols(QLibrary& lib){
|
||||
getAppObj=(QApplication*(*)(int,char**))lib.resolve("getAppObj");
|
||||
if(getAppObj == NULL) return false;
|
||||
return true;
|
||||
}
|
||||
13
src/lib/KdePlugin.h
Normal file
13
src/lib/KdePlugin.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef _KDEPLUGIN_H_
|
||||
#define _KDEPLUGIN_H_
|
||||
#include <qlibrary.h>
|
||||
#include <qapplication.h>
|
||||
|
||||
class CKdePlugin{
|
||||
public:
|
||||
bool resolveSymbols(QLibrary& lib);
|
||||
QApplication*(*getAppObj)(int,char**);
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user