conexus logo

pk11slot.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2007 by Rick L. Vinyard, Jr.                            *
00003  *   rvinyard@cs.nmsu.edu                                                  *
00004  *                                                                         *
00005  *   This file is part of the conexus library.                             *
00006  *                                                                         *
00007  *   The conexus library is free software; you can redistribute it and/or  *
00008  *   modify it under the terms of the GNU General Public License           *
00009  *   version 3 as published by the Free Software Foundation.               *
00010  *                                                                         *
00011  *   The conexus library is distributed in the hope that it will be        *
00012  *   useful, but WITHOUT ANY WARRANTY; without even the implied warranty   *
00013  *   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   *
00014  *   General Public License for more details.                              *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU General Public License     *
00017  *   along with this software. If not see <http://www.gnu.org/licenses/>.  *
00018  ***************************************************************************/
00019 #ifndef CONEXUS_NSSPK11SLOT_H
00020 #define CONEXUS_NSSPK11SLOT_H
00021 
00022 #include <pk11func.h>
00023 
00024 #include <conexus/pointer.h>
00025 
00026 namespace Conexus
00027 {
00028 
00029   namespace NSS
00030   {
00031 
00035     class PK11Slot
00036     {
00037       public:
00038         typedef ConexusPointer<PK11Slot> pointer;
00039 
00040       protected:
00041         PK11Slot(PK11SlotInfo* cobj);
00042 
00043       public:
00044         static pointer create( PK11SlotInfo* cobj = NULL );
00045         
00046         ~PK11Slot();
00047 
00048         const char* name();
00049 
00050         const char* token_name();
00051 
00052         bool is_hardware();
00053 
00054         bool is_available();
00055 
00056         bool is_readonly();
00057 
00058         operator bool();
00059 
00060         void set_cobj( PK11SlotInfo* cobj );
00061         
00062         PK11SlotInfo* cobj();
00063 
00064       protected:
00065         PK11SlotInfo* m_cobj;
00066 
00067     };
00068 
00069   }
00070 
00071 }
00072 
00073 #endif

Generated on Wed Jul 8 15:50:08 2009 for conexus by doxygen 1.5.8