urlhandlermanager.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef __KMAIL_URLHANDLERMANAGER_H__
00033 #define __KMAIL_URLHANDLERMANAGER_H__
00034
00035 #include <qvaluevector.h>
00036
00037 class KURL;
00038
00039 class QString;
00040 class QPoint;
00041 class KMReaderWin;
00042
00043 namespace KMail {
00044
00045 class URLHandler;
00046
00051 class URLHandlerManager {
00052 static URLHandlerManager * self;
00053
00054 URLHandlerManager();
00055 public:
00056 ~URLHandlerManager();
00057
00058 static URLHandlerManager * instance() {
00059 if ( !self )
00060 self = new URLHandlerManager();
00061 return self;
00062 }
00063
00064 void registerHandler( const URLHandler * handler );
00065 void unregisterHandler( const URLHandler * handler );
00066
00067 bool handleClick( const KURL & url, KMReaderWin * w=0 ) const;
00068 bool handleContextMenuRequest( const KURL & url, const QPoint & p, KMReaderWin * w=0 ) const;
00069 QString statusBarMessage( const KURL & url, KMReaderWin * w=0 ) const;
00070
00071 private:
00072 typedef QValueVector<const URLHandler*>::const_iterator const_iterator;
00073 typedef QValueVector<const URLHandler*>::iterator iterator;
00074 QValueVector<const URLHandler*> mHandlers;
00075 };
00076
00077 }
00078
00079 #endif // __KMAIL_URLHANDLERMANAGER_H__
00080
This file is part of the documentation for kmail Library Version 3.2.2.