result.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __GPGMEPP_RESULT_H__
00022 #define __GPGMEPP_RESULT_H__
00023
00024 #include <gpgmepp/gpgmefw.h>
00025 #include <gpgmepp/context.h>
00026
00027 namespace GpgME {
00028
00029 class Result {
00030 public:
00031 Result( int error=0 ) : mError( error ) {}
00032 Result( const Result & other ) : mError( other.error() ) {}
00033
00034 const Result & operator=( const Result & other ) {
00035 mError = other.mError;
00036 return *this;
00037 }
00038
00039 const Error & error() const { return mError; }
00040
00041 private:
00042 Error mError;
00043 };
00044
00045 }
00046
00047 #endif // __GPGMEPP_RESULT_H__
This file is part of the documentation for libkdenetwork Library Version 3.3.2.