1 /* vi: set sw=4 ts=4: 2 * 3 * Copyright (C) 2001 - 2010 Christian Hohnstaedt. 4 * 5 * All rights reserved. 6 */ 7 8 #ifndef __DB_TOKEN_H 9 #define __DB_TOKEN_H 10 11 #include "pkcs11_lib.h" 12 #include "db_base.h" 13 14 class pki_scard; 15 class db_token: public db_base 16 { 17 Q_OBJECT 18 private: 19 slotid slot; 20 public: 21 db_token(); 22 bool setData(const QModelIndex &index, 23 const QVariant &value, int role); setSlot(const slotid & s)24 void setSlot(const slotid &s) 25 { 26 slot = s; 27 } 28 void saveHeaderState(); 29 void rename_token_in_database(pki_scard *token); 30 }; 31 32 #endif 33