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

kjots

  • sources
  • kde-4.14
  • kdepim
  • kjots
  • plasmoid
akonotes_noteapplet.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef AKONOTES_NOTEAPPLET_H
21 #define AKONOTES_NOTEAPPLET_H
22 
23 #include <Plasma/Applet>
24 
25 #include <akonadi/collection.h>
26 #include <akonadi/item.h>
27 
28 class QGraphicsLinearLayout;
29 
30 class KJob;
31 
32 namespace Plasma
33 {
34 class FrameSvg;
35 class LineEdit;
36 class TextEdit;
37 }
38 
39 namespace Akonadi
40 {
41 class Monitor;
42 }
43 
44 class AkonotesNoteApplet : public Plasma::Applet
45 {
46  Q_OBJECT
47 public:
48  AkonotesNoteApplet(QObject* parent, const QVariantList& args);
49 
50  virtual void init();
51 
52  virtual void paintInterface(QPainter* painter, const QStyleOptionGraphicsItem* option, const QRect& contentsRect);
53 
54  virtual void resizeEvent(QGraphicsSceneResizeEvent* event);
55 
56 protected slots:
57  void itemCreateJobFinished( KJob *job );
58  void modifyDone( KJob *job );
59  void itemsFetched( const Akonadi::Item::List &list );
60  void collectionFetchDone( KJob *job );
61  void itemFetchDone( KJob *job );
62 
63  void itemRemoved();
64  void itemChanged( const Akonadi::Item &item );
65  void defaultCreated( KJob *job );
66  void syncDone( KJob *job );
67 
68 protected:
69  virtual bool eventFilter( QObject* watched, QEvent* event );
70 
71 private:
72  void saveItem();
73  void createInDefaultCollection();
74  void createDefaultConcreteCollection();
75 
76 private:
77  Plasma::FrameSvg *m_theme;
78  Plasma::LineEdit *m_subject;
79  Plasma::TextEdit *m_content;
80  QGraphicsLinearLayout *m_layout;
81 
82  Akonadi::Item m_item;
83  Akonadi::Monitor *m_monitor;
84 
85 };
86 
87 #endif
QEvent
AkonotesNoteApplet::itemsFetched
void itemsFetched(const Akonadi::Item::List &list)
Definition: akonotes_noteapplet.cpp:341
AkonotesNoteApplet::resizeEvent
virtual void resizeEvent(QGraphicsSceneResizeEvent *event)
Definition: akonotes_noteapplet.cpp:291
QGraphicsLinearLayout
AkonotesNoteApplet::itemRemoved
void itemRemoved()
Definition: akonotes_noteapplet.cpp:393
AkonotesNoteApplet::init
virtual void init()
Definition: akonotes_noteapplet.cpp:124
AkonotesNoteApplet::paintInterface
virtual void paintInterface(QPainter *painter, const QStyleOptionGraphicsItem *option, const QRect &contentsRect)
Definition: akonotes_noteapplet.cpp:278
QRect
AkonotesNoteApplet::AkonotesNoteApplet
AkonotesNoteApplet(QObject *parent, const QVariantList &args)
Definition: akonotes_noteapplet.cpp:62
QObject
AkonotesNoteApplet::modifyDone
void modifyDone(KJob *job)
Definition: akonotes_noteapplet.cpp:332
QPainter
AkonotesNoteApplet::eventFilter
virtual bool eventFilter(QObject *watched, QEvent *event)
Definition: akonotes_noteapplet.cpp:298
QGraphicsSceneResizeEvent
AkonotesNoteApplet::itemChanged
void itemChanged(const Akonadi::Item &item)
Definition: akonotes_noteapplet.cpp:381
AkonotesNoteApplet::syncDone
void syncDone(KJob *job)
Definition: akonotes_noteapplet.cpp:194
AkonotesNoteApplet::defaultCreated
void defaultCreated(KJob *job)
Definition: akonotes_noteapplet.cpp:170
QStyleOptionGraphicsItem
AkonotesNoteApplet::itemCreateJobFinished
void itemCreateJobFinished(KJob *job)
Definition: akonotes_noteapplet.cpp:358
AkonotesNoteApplet::itemFetchDone
void itemFetchDone(KJob *job)
Definition: akonotes_noteapplet.cpp:265
AkonotesNoteApplet
Definition: akonotes_noteapplet.h:44
AkonotesNoteApplet::collectionFetchDone
void collectionFetchDone(KJob *job)
Definition: akonotes_noteapplet.cpp:207
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kjots

Skip menu "kjots"
  • Main Page
  • Namespace List
  • 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
  • pimprint

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