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

blogilo

  • sources
  • kde-4.14
  • kdepim
  • blogilo
  • src
  • composer
stylegetter.h
Go to the documentation of this file.
1 /*
2  This file is part of Blogilo, A KDE Blogging Client
3 
4  It is a modified version of "weblogstylegetter.h" from
5  KBlogger project. it has been modified for use in Blogilo, at
6  February 2009.
7 
8  Copyright (C) 2007-2008-2008 by Christian Weilbach <christian_weilbach@web.de>
9  Copyright (C) 2007-2008 Antonio Aloisio <gnuton@gnuton.org>
10  Copyright (C) 2008-2010 Mehrdad Momeny <mehrdad.momeny@gmail.com>
11  Copyright (C) 2008-2010 Golnaz Nilieh <g382nilieh@gmail.com>
12 
13  This program is free software; you can redistribute it and/or
14  modify it under the terms of the GNU General Public License as
15  published by the Free Software Foundation; either version 2 of
16  the License or (at your option) version 3 or any later version
17  accepted by the membership of KDE e.V. (or its successor approved
18  by the membership of KDE e.V.), which shall act as a proxy
19  defined in Section 14 of version 3 of the license.
20 
21 
22  This program is distributed in the hope that it will be useful,
23  but WITHOUT ANY WARRANTY; without even the implied warranty of
24  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25  GNU General Public License for more details.
26 
27  You should have received a copy of the GNU General Public License
28  along with this program; if not, see http://www.gnu.org/licenses/
29 */
30 
31 #ifndef STYLEGETTER_H
32 #define STYLEGETTER_H
33 #include <QObject>
34 #include <QString>
35 
36 
37 class KJob;
38 
39 
40 class BilboPost;
41 class Backend;
42 
51 class StyleGetter: public QObject
52 {
53  Q_OBJECT
54 public:
61  StyleGetter( const int blogid, QObject* parent );
65  ~StyleGetter();
66 
76  static QString styledHtml( const int blogid,
77  const QString& title,
78  const QString& content );
79 Q_SIGNALS:
84  void sigStyleFetched();
85 
91  void sigGetStyleProgress( int percent );
92 
93 private Q_SLOTS:
94 // void slotPostSent();
95  void slotTempPostPublished( int blogId, BilboPost* post );
96  void slotTempPostRemoved( int blog_id, const BilboPost &post );
97  void slotHtmlCopied( KJob* job );
98  void slotError( const QString & errMsg );
99 
100 private:
101  void generateRandomPostStrings();
102 
103  BilboPost *mTempPost;
104  QString mCachePath;
105  QString mPostTitle;
106  QString mPostContent;
107  QWidget *mParent;
108 
109  Backend *b;
110 };
111 
112 #endif
QWidget
BilboPost
Definition of a blog post! it's implemented to decrease dependency to KBlog :)
Definition: bilbopost.h:41
StyleGetter::styledHtml
static QString styledHtml(const int blogid, const QString &title, const QString &content)
Looks for a file named style.html for the requested blog in blogilo data directory, then writes the file content into a buffer, inserts given post title and content in the buffer, and returns it.
Definition: stylegetter.cpp:98
StyleGetter
This class will:
Definition: stylegetter.h:51
StyleGetter::sigGetStyleProgress
void sigGetStyleProgress(int percent)
While the class is fetching blog style from the web, this signal shows the operation progress...
QObject
StyleGetter::sigStyleFetched
void sigStyleFetched()
When StyleGetter finishes all jobs to get and save a blog style, this signal will be emmited...
QString
Backend
Engine of application.
Definition: backend.h:45
StyleGetter::~StyleGetter
~StyleGetter()
StyleGetter destructor.
Definition: stylegetter.cpp:93
QObject::parent
QObject * parent() const
StyleGetter::StyleGetter
StyleGetter(const int blogid, QObject *parent)
Creates an instance of StyleGetter, to fetch the style of the requested blog.
Definition: stylegetter.cpp:50
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

blogilo

Skip menu "blogilo"
  • 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