akregator
akregator_part.cpp
Go to the documentation of this file.
86 QDomProcessingInstruction z = doc.createProcessingInstruction("xml","version=\"1.0\" encoding=\"UTF-8\"");
228 if (!Backend::StorageFactoryRegistry::self()->registerFactory(dummyFactory, dummyFactory->key())) {
235 Backend::StorageFactory* storageFactory = Backend::StorageFactoryRegistry::self()->getFactory(Settings::archiveBackend());
241 m_storage = Backend::StorageFactoryRegistry::self()->getFactory("dummy")->createStorage(QStringList());
243 KMessageBox::error(parentWidget, i18n("Unable to load storage backend plugin \"%1\". No feeds are archived.", Settings::archiveBackend()), i18n("Plugin error") );
252 m_mainWidget = new Akregator::MainWidget(this, parentWidget, m_actionManager, "akregator_view");
255 connect(Kernel::self()->frameManager(), SIGNAL(signalCaptionChanged(QString)), this, SIGNAL(setWindowCaption(QString)));
256 connect(Kernel::self()->frameManager(), SIGNAL(signalStatusText(QString)), this, SLOT(slotSetStatusText(QString)));
257 connect(Kernel::self()->frameManager(), SIGNAL(signalLoadingProgress(int)), m_extension, SIGNAL(loadingProgress(int)));
258 connect(Kernel::self()->frameManager(), SIGNAL(signalCanceled(QString)), this, SIGNAL(canceled(QString)));
277 connect( m_mainWidget, SIGNAL(signalUnreadCountChanged(int)), trayIcon, SLOT(slotSetUnread(int)) );
303 const KService::List offers = PluginManager::query( QString::fromLatin1("[X-KDE-akregator-plugintype] == '%1'").arg( type ) );
337 NotificationManager::self()->setWidget(isTrayIconEnabled() ? m_mainWidget->window() : 0, componentData());
348 connect( m_mainWidget, SIGNAL(signalUnreadCountChanged(int)), trayIcon, SLOT(slotSetUnread(int)) );
501 i18n( "Access denied: Cannot save feed list to <b>%1</b>. Please check your permissions.", localFilePath() ),
537 KMessageBox::error(m_mainWidget, i18n("Could not import the file %1 (no valid OPML)", filename), i18n("OPML Parsing Error") );
540 KMessageBox::error(m_mainWidget, i18n("The file %1 could not be read, check if it exists or if it is readable for the current user.", filename), i18n("Read Error"));
561 KMessageBox::error(m_mainWidget, i18n("Access denied: cannot write to file %1. Please check your permissions.", fname), i18n("Write Error") );
void setCodec(QTextCodec *codec)
void saveProperties(KConfigGroup &config)
Definition: mainwidget.cpp:1163
QDomProcessingInstruction createProcessingInstruction(const QString &target, const QString &data)
Definition: trayicon.h:37
QDomNode appendChild(const QDomNode &newChild)
void append(const T &value)
QWidget * window() const
This is the main widget of the view, containing tree view, article list, viewer etc.
Definition: mainwidget.h:68
virtual void readProperties(const KConfigGroup &config)
This method is called when this app is restored.
Definition: akregator_part.cpp:402
void saveSettings()
Used to save settings after changing them from configuration dialog.
Definition: akregator_part.cpp:385
QString toString(int indent) const
Definition: aboutdata.h:35
void importFeedList(const QDomDocument &doc)
Adds the feeds in doc to the "Imported Folder".
Definition: mainwidget.cpp:414
void setFeedList(const boost::shared_ptr< FeedList > &feedList)
Definition: mainwidget.cpp:423
virtual QString key() const
identifier of the storage type, like "metakit", "postgres" etc.
Definition: storagefactorydummyimpl.cpp:41
bool registerObject(const QString &path, QObject *object, QFlags< QDBusConnection::RegisterOption > options)
void signalSettingsChanged()
void addFeedsToGroup(const QStringList &urls, const QString &group)
Add a feed to a group.
Definition: akregator_part.cpp:611
QDBusConnection sessionBus()
static void setInstance(ActionManager *manager)
Definition: actionmanager.cpp:40
bool exists() const
virtual void saveProperties(KConfigGroup &config)
This method is called when it is time for the app to save its properties for session management purpo...
Definition: akregator_part.cpp:411
static StorageFactoryRegistry * self()
Definition: storagefactoryregistry.cpp:43
Definition: plugin.h:41
bool copy(const QString &newName)
virtual void insertGuiClients(KXMLGUIClient *parent)
Definition: plugin.cpp:68
void setTrayIcon(TrayIcon *trayIcon)
Definition: actionmanagerimpl.cpp:155
void signalArticlesSelected(const QList< Akregator::Article > &)
void showNotificationOptions()
Definition: akregator_part.cpp:626
void setWidget(QWidget *widget, const KComponentData &inst=KComponentData())
the widget used for notification, normally either the mainwindow or the tray icon ...
Definition: notificationmanager.cpp:54
static KService::List query(const QString &constraint=QString())
It will return a list of services that match your specifications.
Definition: pluginmanager.cpp:41
void append(const T &value)
Akregator-specific implementation of the ActionManager interface.
Definition: actionmanagerimpl.h:50
static NotificationManager * self()
singleton instance of notification manager
Definition: notificationmanager.cpp:130
void setAttribute(const QString &name, const QString &value)
static void setInstance(TrayIcon *trayIcon)
Definition: trayicon.cpp:50
bool isEmpty() const
bool isEmpty() const
Definition: akregator_part.h:61
void slotSaveFeedList()
Saves the standard feed list to it's default location.
Definition: akregator_part.cpp:481
virtual void storeFeedList(const QString &opmlStr)=0
stores the feed list in the storage backend.
StorageFactory * getFactory(const QString &typestr)
Definition: storagefactoryregistry.cpp:64
virtual bool open(bool autoCommit=false)=0
Open storage and prepare it for work.
QDomText createTextNode(const QString &value)
virtual Storage * createStorage(const QStringList ¶ms) const =0
creates a storage object with given parameters
void stop()
K_EXPORT_PLUGIN(AkregatorFactory(createAboutData())) BrowserExtension
Definition: akregator_part.cpp:186
void slotMarkAllFeedsRead()
marks all articles in all feeds in the tree as read
Definition: mainwidget.cpp:747
void flush()
static Akregator::Plugin * createFromService(const KService::Ptr service, QObject *parent=0)
Load and instantiate plugin from service.
Definition: pluginmanager.cpp:81
QString fromLatin1(const char *str, int size)
void start(int msec)
QDomElement createElement(const QString &tagName)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
static const KAboutData & createAboutData()
Definition: akregator_part.cpp:179
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.