vcardhandler.h

00001 /*
00002   Copyright (c) 2006 by Jakob Schroeter <js@camaya.net>
00003   This file is part of the gloox library. http://camaya.net/gloox
00004 
00005   This software is distributed under a license. The full license
00006   agreement can be found in the file LICENSE in this distribution.
00007   This software may not be copied, modified, sold or distributed
00008   other than expressed in the named license agreement.
00009 
00010   This software is distributed without any warranty.
00011 */
00012 
00013 
00014 #ifndef VCARDHANDLER_H__
00015 #define VCARDHANDLER_H__
00016 
00017 namespace gloox
00018 {
00019 
00020   class VCard;
00021 
00032   class GLOOX_API VCardHandler
00033   {
00034     public:
00038       enum VCardContext
00039       {
00040         FetchVCard,                 
00041         StoreVCard                  
00042       };
00043 
00047       virtual ~VCardHandler() {};
00048 
00055       virtual void handleVCard( const JID& jid, VCard *vcard ) = 0;
00056 
00064       virtual void handleVCardResult( VCardContext context, const JID& jid,
00065                                       StanzaError se = StanzaErrorUndefined  ) = 0;
00066 
00067   };
00068 
00069 }
00070 
00071 #endif // VCARDHANDLER_H__

Generated on Tue May 1 14:20:20 2007 for gloox by  doxygen 1.5.1