gloox 1.0
|
00001 /* 00002 Copyright (c) 2005-2009 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 FLEXOFFHANDLER_H__ 00015 #define FLEXOFFHANDLER_H__ 00016 00017 #include "disco.h" 00018 #include "gloox.h" 00019 00020 namespace gloox 00021 { 00022 00026 enum FlexibleOfflineResult 00027 { 00028 FomrRemoveSuccess, 00029 FomrRequestSuccess, 00030 FomrForbidden, 00032 FomrItemNotFound, 00033 FomrUnknownError 00034 }; 00035 00043 class GLOOX_API FlexibleOfflineHandler 00044 { 00045 public: 00049 virtual ~FlexibleOfflineHandler() {} 00050 00056 virtual void handleFlexibleOfflineSupport( bool support ) = 0; 00057 00063 virtual void handleFlexibleOfflineMsgNum( int num ) = 0; 00064 00070 virtual void handleFlexibleOfflineMessageHeaders( const Disco::ItemList& headers ) = 0; 00071 00076 virtual void handleFlexibleOfflineResult( FlexibleOfflineResult foResult ) = 0; 00077 00078 }; 00079 00080 } 00081 00082 #endif // FLEXOFFHANDLER_H__