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

korganizer

  • sources
  • kde-4.12
  • kdepim
  • korganizer
  • plugins
  • picoftheday
picoftheday.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3  Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4  Copyright (c) 2007 Loïc Corbasson <loic.corbasson@gmail.com>
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 along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KORG_PLUGINS_PICOFTHEDAY_PICOFTHEDAY_H
22 #define KORG_PLUGINS_PICOFTHEDAY_PICOFTHEDAY_H
23 
24 #include <calendarviews/agenda/calendardecoration.h>
25 using namespace EventViews::CalendarDecoration;
26 
27 #include <KIO/Job>
28 
29 class Picoftheday : public Decoration
30 {
31  public:
32  Picoftheday();
33  ~Picoftheday();
34 
35  Element::List createDayElements( const QDate & );
36 
37  void configure( QWidget *parent );
38 
39  QString info() const;
40 
41  private:
42  QSize mThumbSize;
43 };
44 
45 class POTDElement : public StoredElement
46 {
47  Q_OBJECT
48 
49  public:
50  POTDElement( const QString &id, const QDate &date,
51  const QSize &initialThumbSize );
52  ~POTDElement() {}
53 
54  void setDate( const QDate &date );
55  void setThumbnailSize( const QSize &size );
57  QPixmap newPixmap( const QSize &size );
58 
61  KUrl thumbnailUrl( const KUrl &fullSizeUrl, const int width = 0 ) const;
62 
63  signals:
64  void gotNewPixmap( const QPixmap & ) const;
65  void gotNewShortText( const QString & ) const;
66  void gotNewLongText( const QString & ) const;
67  void gotNewExtensiveText( const QString & ) const;
68  void gotNewUrl( const KUrl & ) const;
69  // The following three signals are only used internally
70  void step1Success() const;
71  void step2Success() const;
72  void step3Success() const;
73 
74  protected slots:
75  void step1StartDownload();
76  void step2GetImagePage();
77  void step3GetThumbnail();
78 
79  private:
80  QDate mDate;
81  QString mDescription;
82  QSize mDlThumbSize;
83  QString mFileName;
84  KUrl mFullSizeImageUrl;
85  float mHWRatio;
86  QSize mThumbSize;
87  KUrl mThumbUrl;
88  bool mFirstStepCompleted;
89  bool mSecondStepCompleted;
90  KIO::SimpleJob *mFirstStepJob;
91  KIO::SimpleJob *mSecondStepJob;
92  KIO::SimpleJob *mThirdStepJob;
93  QTimer *mTimer;
94 
95  private slots:
96  void step1Result( KJob *job );
97  void step2Result( KJob *job );
98  void step3Result( KJob *job );
99 };
100 
101 #endif
POTDElement
Definition: picoftheday.h:45
QWidget
StoredElement
POTDElement::~POTDElement
~POTDElement()
Definition: picoftheday.h:52
Decoration
KJob
Picoftheday
Definition: picoftheday.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

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