signon  8.58
cryptsetup-plugin.h
Go to the documentation of this file.
1 /* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of signon
4  *
5  * Copyright (C) 2010 Nokia Corporation.
6  *
7  * Contact: Aurel Popirtac <ext-aurel.popirtac@nokia.com>
8  * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public License
12  * version 2.1 as published by the Free Software Foundation.
13  *
14  * This library is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22  * 02110-1301 USA
23  */
24 
25 #ifndef CRYPTSETUP_PLUGIN_H
26 #define CRYPTSETUP_PLUGIN_H
27 
28 #include <QObject>
29 #include <SignOn/ExtensionInterface>
30 
31 class CryptsetupPlugin: public QObject, public SignOn::ExtensionInterface3
32 {
33  Q_OBJECT
34  Q_INTERFACES(SignOn::ExtensionInterface3)
35 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
36  Q_PLUGIN_METADATA(IID "com.nokia.SingleSignOn.ExtensionInterface/3.0")
37 #endif
38 
39 public:
41 
42  // reimplemented methods
43  SignOn::AbstractCryptoManager *cryptoManager(QObject *parent = 0) const;
44 };
45 
46 #endif // CRYPTSETUP_PLUGIN_H
47 
SignOn::AbstractCryptoManager * cryptoManager(QObject *parent=0) const