26#ifndef _AKREGATORPART_H_
27#define _AKREGATORPART_H_
29#include <tdeparts/browserextension.h>
30#include <tdeparts/part.h>
35#include "akregator_partiface.h"
51 typedef KParts::ReadOnlyPart MyBasePart;
53 class ActionManagerImpl;
60 class BrowserExtension :
public KParts::BrowserExtension
66 BrowserExtension(Part *p,
const char *name );
77 class Part :
public MyBasePart,
virtual public AkregatorPartIface
82 typedef MyBasePart inherited;
85 Part(TQWidget *parentWidget,
const char *widgetName,
86 TQObject *parent,
const char *name,
const TQStringList&);
98 virtual bool openURL(
const KURL& url);
103 virtual void fetchFeedUrl(
const TQString&);
115 virtual void addFeedsToGroup(
const TQStringList& urls,
const TQString& group);
117 virtual void addFeed();
136 void loadTagSet(
const TQString& path);
137 void saveTagSet(
const TQString& path);
150 void fileSendLink() { fileSendArticle(); }
151 void fileSendFile() { fileSendArticle(
true); }
152 void fileSendArticle(
bool attach=
false);
156 void showKNotifyOptions();
160 void signalSettingsChanged();
174 void importFile(
const KURL& url);
175 void exportFile(
const KURL& url);
180 virtual KParts::Part *hitTest(TQWidget *widget,
const TQPoint &globalPos);
186 void slotOnShutdown();
187 void slotSettingsChanged();
191 bool copyFile(
const TQString& backup);
197 static TQDomDocument createDefaultFeedList();
199 bool tryToLock(
const TQString& backendName);
203 class ApplyFiltersInterceptor;
204 ApplyFiltersInterceptor* m_applyFiltersInterceptor;
205 TQString m_standardFeedList;
206 TQString m_tagSetPath;
207 bool m_standardListLoaded;
210 KParts::BrowserExtension *m_extension;
211 KParts::Part* m_mergedPart;
214 TQTimer* m_autosaveTimer;
Akregator-specific implementation of the ActionManager interface.
Storage is the main interface to the article archive.
This is a RSS Aggregator "Part".
virtual bool openFile()
This must be implemented by each part.
TQWidget * getMainWindow()
FIXME: hack to get the tray icon working.
virtual void partActivateEvent(KParts::PartActivateEvent *event)
reimplemented to load/unload the merged parts on selection/deselection
virtual bool isTrayIconEnabled() const
static TDEAboutData * createAboutData()
Create TDEAboutData for this KPart.
virtual bool mergePart(KParts::Part *)
merges a nested part's GUI into the gui of this part
virtual void fetchAllFeeds()
Fetch all feeds in the feed tree.
virtual void saveProperties(TDEConfig *config)
This method is called when it is time for the app to save its properties for session management purpo...
void slotSaveFeedList()
Saves the standard feed list to it's default location.
virtual bool openURL(const KURL &url)
Opens feedlist.
virtual void openStandardFeedList()
Opens standard feedlist.
void loadPlugins()
loads all Akregator plugins
virtual void addFeedsToGroup(const TQStringList &urls, const TQString &group)
Add a feed to a group.
virtual ~Part()
Destructor.
virtual void readProperties(TDEConfig *config)
This method is called when this app is restored.
virtual void saveSettings()
Used to save settings after changing them from configuration dialog.
void showOptions()
Shows configuration dialog.
This is the main widget of the view, containing tree view, article list, viewer etc.