libkdenetwork Library API Documentation

trustitem.h

00001 /* trustitem.h - wraps a gpgme trust item 00002 Copyright (C) 2003 Klarälvdalens Datakonsult AB 00003 00004 This file is part of GPGME. 00005 00006 GPGME is free software; you can redistribute it and/or modify it 00007 under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 GPGME is distributed in the hope that it will be useful, but 00012 WITHOUT ANY WARRANTY; without even the implied warranty of 00013 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 GPGME; if not, write to the Free Software Foundation, 00018 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA. */ 00019 00020 // -*- c++ -*- 00021 #ifndef __GPGMEPP_TRUSTITEM_H__ 00022 #define __GPGMEPP_TRUSTITEM_H__ 00023 00024 #include <gpgmepp/gpgmefw.h> 00025 #include <gpgmepp/key.h> 00026 00027 namespace GpgME { 00028 00029 class Context; 00030 00031 class TrustItem { 00032 friend class Context; 00033 public: 00034 TrustItem( gpgme_trust_item_t item=0 ); 00035 TrustItem( const TrustItem & other ); 00036 virtual ~TrustItem(); 00037 00038 const TrustItem & operator=( const TrustItem & other ); 00039 00040 bool isNull() const; 00041 00042 const char * keyID() const; 00043 const char * userID() const; 00044 00045 const char * ownerTrustAsString() const; 00046 const char * validityAsString() const; 00047 00048 int trustLevel() const; 00049 00050 enum Type { Unknown=0, Key=1, UserID=2 }; 00051 Type type() const; 00052 00053 private: 00054 gpgme_trust_item_t impl() const; 00055 class Private; 00056 Private * d; 00057 }; 00058 00059 } // namepace GpgME 00060 00061 #endif // __GPGMEPP_TRUSTITEM_H__
KDE Logo
This file is part of the documentation for libkdenetwork Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:18:39 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003