daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Nov 7th, 2011 166 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TEMPLATE = lib
  2. CONFIG  += plugin
  3.  
  4. CONFIG += qt debug link_pkgconfig
  5. PKGCONFIG += accounts-qt libsignon-qt libsignon-plugins
  6. QT += xml
  7.  
  8. TARGET      = footestplugin
  9. DEFINES    += QT_NO_DEBUG
  10.  
  11. INCLUDEPATH += ./src /opt/qt-sdk-1.1/Madde/sysroots/harmattan-meego-arm-sysroot-1134-slim/usr/include/signon-plugins/
  12. VPATH       += $$DEPENDPATH $$INCLUDEPATH
  13.  
  14. HEADERS += \
  15.     testfooauth.h
  16.  
  17. SOURCES += \
  18.     testfooauth.cpp
  19.  
  20. target.path = /usr/lib/AccountSetup/bin/
  21. INSTALLS    += target
  22.  
  23. ---
  24.  
  25. #ifndef TESTFOOAUTH_H
  26. #define TESTFOOAUTH_H
  27.  
  28. #include <SignOn/AuthPluginInterface>
  29.  
  30. class TestFooAuth : public AuthPluginInterface
  31. {
  32.     Q_OBJECT
  33.     Q_INTERFACES(AuthPluginInterface)
  34.  
  35. public:
  36.     TestFooAuth(QObject *parent = 0);
  37.     virtual ~TestFooAuth();
  38.  
  39. public slots:
  40.     QString type() const;
  41.     QStringList mechanisms() const;
  42.  
  43.     void cancel ();
  44.     void abort();
  45.     void process (const SignOn::SessionData & inData,
  46.                   const QString & mechanism = 0);
  47.  
  48. };
  49.  
  50. #endif // TESTFOOAUTH_H
  51.  
  52. ---
  53.  
  54. #include "testfooauth.h"
  55.  
  56. TestFooAuth::TestFooAuth(QObject *parent)
  57. {
  58. }
  59.  
  60. TestFooAuth::~TestFooAuth()
  61. {
  62. }
  63.  
  64. QString TestFooAuth::type() const
  65. {
  66. }
  67.  
  68. QStringList TestFooAuth::mechanisms() const
  69. {
  70. }
  71.  
  72. void TestFooAuth::cancel()
  73. {
  74. }
  75.  
  76. void TestFooAuth::abort()
  77. {
  78. }
  79.  
  80. void TestFooAuth::process(const SignOn::SessionData &inData, const QString &mechanism)
  81. {
  82. }
  83.  
  84.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top