• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

akregator

  • sources
  • kde-4.12
  • kdepim
  • akregator
  • src
kernel.cpp
Go to the documentation of this file.
1 /*
2  This file is part of Akregator.
3 
4  Copyright (C) 2005 Frank Osterfeld <osterfeld@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 
25 #include "kernel.h"
26 
27 #include "feedlist.h"
28 #include "fetchqueue.h"
29 #include "framemanager.h"
30 
31 #include <QPointer>
32 
33 using namespace boost;
34 
35 namespace Akregator
36 {
37 
38 Kernel* Kernel::m_self = 0;
39 
40 Kernel* Kernel::self()
41 {
42  static Kernel self;
43  if (!m_self)
44  m_self = &self;
45  return m_self;
46 }
47 
48 class Kernel::KernelPrivate
49 {
50  public:
51 
52  Backend::Storage* storage;
53  shared_ptr<FeedList> feedList;
54  FetchQueue* fetchQueue;
55  FrameManager* frameManager;
56 };
57 
58 Kernel::Kernel() : d(new KernelPrivate)
59 {
60  d->fetchQueue = new FetchQueue();
61  d->frameManager = new FrameManager();
62  d->storage = 0;
63 }
64 
65 Kernel::~Kernel()
66 {
67  delete d->fetchQueue;
68  delete d->frameManager;
69  delete d;
70  d = 0;
71 }
72 
73 Backend::Storage* Kernel::storage()
74 {
75  return d->storage;
76 }
77 
78 void Kernel::setStorage(Backend::Storage* storage)
79 {
80  d->storage = storage;
81 }
82 
83 shared_ptr<FeedList> Kernel::feedList() const
84 {
85  return d->feedList;
86 }
87 
88 void Kernel::setFeedList(const shared_ptr<FeedList>& feedList)
89 {
90  d->feedList = feedList;
91 }
92 
93 FetchQueue* Kernel::fetchQueue()
94 {
95  return d->fetchQueue;
96 }
97 
98 FrameManager* Kernel::frameManager()
99 {
100  return d->frameManager;
101 }
102 
103 } // namespace Akregator
Akregator::Kernel::feedList
boost::shared_ptr< FeedList > feedList() const
Definition: kernel.cpp:83
feedlist.h
kernel.h
Akregator::Kernel::~Kernel
~Kernel()
Definition: kernel.cpp:65
Akregator::Kernel::setStorage
void setStorage(Backend::Storage *storage)
Definition: kernel.cpp:78
Akregator::Kernel::setFeedList
void setFeedList(const boost::shared_ptr< FeedList > &feedList)
Definition: kernel.cpp:88
Akregator::Backend::Storage
Storage is the main interface to the article archive.
Definition: storage.h:43
Akregator::Kernel::frameManager
FrameManager * frameManager()
Definition: kernel.cpp:98
Akregator::Kernel::storage
Backend::Storage * storage()
Definition: kernel.cpp:73
fetchqueue.h
Akregator::FrameManager
Definition: framemanager.h:43
Akregator::Kernel
Definition: kernel.h:43
framemanager.h
Akregator::FetchQueue
Definition: fetchqueue.h:37
Akregator::Kernel::fetchQueue
FetchQueue * fetchQueue()
Definition: kernel.cpp:93
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akregator

Skip menu "akregator"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal