secrecy.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 #ifndef KABC_SECRECY_H
00022 #define KABC_SECRECY_H
00023 
00024 #include <qvaluelist.h>
00025 
00026 namespace KABC {
00027 
00028 class Secrecy
00029 {
00030     friend QDataStream &operator<<( QDataStream &, const Secrecy & );
00031     friend QDataStream &operator>>( QDataStream &, Secrecy & );
00032 
00033 public:
00034   typedef QValueList<int> TypeList;  
00035 
00043   enum Types {
00044     Public,
00045     Private,
00046     Confidential,
00047     Invalid
00048   };
00049 
00055   Secrecy( int type = Invalid );
00056 
00057   bool operator==( const Secrecy & ) const;
00058   bool operator!=( const Secrecy & ) const;
00059 
00063   bool isValid() const;
00064 
00068   void setType( int type );
00069 
00073   int type() const;
00074 
00078   static TypeList typeList();
00079   
00083   static QString typeLabel( int type );
00084 
00088   QString asString() const;
00089 
00090 private:
00091   int mType;
00092 };
00093 
00094 }
00095 #endif
 
This file is part of the documentation for kabc Library Version 3.2.0.