Solid
smartcardreader.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 2009 Christopher Blauvelt <cblauvelt@gmail.com> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 3 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 00018 */ 00019 00020 #ifndef SOLID_SMARTCARDREADER_H 00021 #define SOLID_SMARTCARDREADER_H 00022 00023 #include <solid/solid_export.h> 00024 00025 #include <solid/deviceinterface.h> 00026 00027 namespace Solid 00028 { 00029 class SmartCardReaderPrivate; 00030 class Device; 00031 00035 class SOLID_EXPORT SmartCardReader : public DeviceInterface 00036 { 00037 Q_OBJECT 00038 Q_ENUMS(ReaderType) 00039 Q_PROPERTY(ReaderType readerType READ readerType) 00040 Q_DECLARE_PRIVATE(SmartCardReader) 00041 friend class Device; 00042 00043 public: 00050 enum ReaderType { UnknownReaderType = -1, 00051 CardReader, CryptoToken }; 00052 00053 private: 00062 explicit SmartCardReader(QObject *backendObject); 00063 00064 public: 00068 virtual ~SmartCardReader(); 00069 00070 00077 static Type deviceInterfaceType() { return DeviceInterface::SmartCardReader; } 00078 00085 ReaderType readerType() const; 00086 }; 00087 } 00088 00089 #endif