2 #include "articleinterceptor.h"
4 #include <tqvaluelist.h>
5 #include <kstaticdeleter.h>
10 class ArticleInterceptorManager::ArticleInterceptorManagerPrivate
13 TQValueList<ArticleInterceptor*> interceptors;
17 ArticleInterceptorManager* ArticleInterceptorManager::m_self = 0;
18 KStaticDeleter<ArticleInterceptorManager> interceptormanagersd;
20 ArticleInterceptorManager* ArticleInterceptorManager::self()
23 interceptormanagersd.setObject(m_self, new ArticleInterceptorManager);
27 ArticleInterceptorManager::~ArticleInterceptorManager()
33 ArticleInterceptorManager::ArticleInterceptorManager() : d(new ArticleInterceptorManagerPrivate)
36 void ArticleInterceptorManager::addInterceptor(ArticleInterceptor* interceptor)
38 d->interceptors.append(interceptor);
41 void ArticleInterceptorManager::removeInterceptor(ArticleInterceptor* interceptor)
43 d->interceptors.remove(interceptor);
46 TQValueList<ArticleInterceptor*> ArticleInterceptorManager::interceptors() const
48 return d->interceptors;
|