• 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
postentry.h
Go to the documentation of this file.
1 /*
2  This file is part of Blogilo, A KDE Blogging Client
3 
4  Copyright (C) 2008-2010 Mehrdad Momeny <mehrdad.momeny@gmail.com>
5  Copyright (C) 2008-2010 Golnaz Nilieh <g382nilieh@gmail.com>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License or (at your option) version 3 or any later version
11  accepted by the membership of KDE e.V. (or its successor approved
12  by the membership of KDE e.V.), which shall act as a proxy
13  defined in Section 14 of version 3 of the license.
14 
15 
16  This program is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, see http://www.gnu.org/licenses/
23 */
24 
25 #ifndef POSTENTRY_H
26 #define POSTENTRY_H
27 
28 #include <QFrame>
29 #include "bilbopost.h"
30 
31 class BilboMedia;
32 class Backend;
33 
40 class PostEntry: public QFrame
41 {
42  Q_OBJECT
43 public:
44  explicit PostEntry( QWidget *parent );
45  ~PostEntry();
46  QString postTitle() const;
47 
48  void setPostTitle( const QString &title );
49  void setPostBody( const QString &content, const QString &additionalContent=QString() );
50 
51  int currentPostBlogId() const;
52  void setCurrentPostBlogId( int blog_id );
53 
54  BilboPost* currentPost();
55  void setCurrentPost( const BilboPost &post );
56 
57  Qt::LayoutDirection defaultLayoutDirection() const;
58  void setDefaultLayoutDirection( Qt::LayoutDirection direction );
59 
65  bool uploadMediaFiles( Backend *backend=0 );
66 
67  void submitPost ( int blogId, const BilboPost &postData );
68 
69  void saveLocally();
70 
71 Q_SIGNALS:
76  void postTitleChanged( const QString &title );
82  void postPublishingDone( bool isError, const QString &customMessage );
83 
87  void textChanged();
88 
92  void postSavedTemporary();
93 
94  void postSavedLocally();
95 
102  void showStatusMessage( const QString& message, bool isPermanent);
103 
110  void sigBusy( bool isBusy );
111 
112 public Q_SLOTS:
113  void settingsChanged();
114 
115 protected Q_SLOTS:
116  void slotError( const QString& errMsg );
117  void slotPostPublished( int blog_id, BilboPost *post );
118  void slotTitleChanged();
119  void showProgressBar();
120  void deleteProgressBar();
121  void saveTemporary();
122  void slotPostModified();
123  void slotFocusEditor();
124 
129  void slotSyncEditors( int index );
130 
131  void slotSetPostPreview();
132 
133 protected:
140  QString htmlContent() const;
141 
142  QString plainTextContent() const;
143 
148  void setHtmlContent( const QString &content );
149 
150  QList <BilboMedia*> localImages() const;
151  void replaceImageSrc(const QString& src, const QString& dest);
152 
153 private:
154  void createUi();
155  void setCurrentPostFromEditor();
156 
157  class Private;
158  Private * const d;
159 };
160 
161 #endif
QWidget
PostEntry::saveLocally
void saveLocally()
Definition: postentry.cpp:482
PostEntry::showStatusMessage
void showStatusMessage(const QString &message, bool isPermanent)
To show a message on statusBar.
PostEntry::postTitleChanged
void postTitleChanged(const QString &title)
emitted when title of this entry changed.
PostEntry::slotTitleChanged
void slotTitleChanged()
Definition: postentry.cpp:248
PostEntry::settingsChanged
void settingsChanged()
Definition: postentry.cpp:116
PostEntry::showProgressBar
void showProgressBar()
Definition: postentry.cpp:464
PostEntry::postPublishingDone
void postPublishingDone(bool isError, const QString &customMessage)
This signal emitted when a post manipulation job e.g.
PostEntry::replaceImageSrc
void replaceImageSrc(const QString &src, const QString &dest)
Definition: postentry.cpp:340
PostEntry::slotSyncEditors
void slotSyncEditors(int index)
Definition: postentry.cpp:190
PostEntry::submitPost
void submitPost(int blogId, const BilboPost &postData)
Definition: postentry.cpp:388
PostEntry::htmlContent
QString htmlContent() const
Returns the editor current text in html format Synchronizes HtmlEditor and editor tabs...
Definition: postentry.cpp:227
PostEntry::setHtmlContent
void setHtmlContent(const QString &content)
Sets the given string as the HtmlEditor and VisualEditor content.
Definition: postentry.cpp:242
PostEntry::defaultLayoutDirection
Qt::LayoutDirection defaultLayoutDirection() const
Definition: postentry.cpp:323
BilboPost
Definition of a blog post! it's implemented to decrease dependency to KBlog :)
Definition: bilbopost.h:41
bilbopost.h
PostEntry::sigBusy
void sigBusy(bool isBusy)
This signal is emitted for operations in background, like request of some data from the web...
PostEntry::setPostTitle
void setPostTitle(const QString &title)
Definition: postentry.cpp:260
PostEntry::slotSetPostPreview
void slotSetPostPreview()
Definition: postentry.cpp:220
PostEntry::plainTextContent
QString plainTextContent() const
Definition: postentry.cpp:237
PostEntry::slotError
void slotError(const QString &errMsg)
Definition: postentry.cpp:380
PostEntry::saveTemporary
void saveTemporary()
Definition: postentry.cpp:499
PostEntry
Post Entry Widget contains Editor, and Title box.
Definition: postentry.h:40
PostEntry::~PostEntry
~PostEntry()
Definition: postentry.cpp:111
PostEntry::setDefaultLayoutDirection
void setDefaultLayoutDirection(Qt::LayoutDirection direction)
Definition: postentry.cpp:328
QString
QList
PostEntry::textChanged
void textChanged()
This signal is emitted when the content of VisualEditor or HtmlEditor changes.
QFrame
Backend
Engine of application.
Definition: backend.h:45
BilboMedia
Definition: bilbomedia.h:38
PostEntry::postSavedLocally
void postSavedLocally()
PostEntry::slotPostPublished
void slotPostPublished(int blog_id, BilboPost *post)
Definition: postentry.cpp:444
PostEntry::postSavedTemporary
void postSavedTemporary()
This signal is emitted when the post is saved temporarily!
PostEntry::currentPostBlogId
int currentPostBlogId() const
Definition: postentry.cpp:285
PostEntry::uploadMediaFiles
bool uploadMediaFiles(Backend *backend=0)
Will Upload media files not uploaded yet, and return true on success and false on failure...
Definition: postentry.cpp:345
PostEntry::PostEntry
PostEntry(QWidget *parent)
Definition: postentry.cpp:93
PostEntry::setPostBody
void setPostBody(const QString &content, const QString &additionalContent=QString())
Definition: postentry.cpp:266
PostEntry::slotPostModified
void slotPostModified()
Definition: postentry.cpp:513
PostEntry::slotFocusEditor
void slotFocusEditor()
Definition: postentry.cpp:178
PostEntry::deleteProgressBar
void deleteProgressBar()
Definition: postentry.cpp:473
PostEntry::currentPost
BilboPost * currentPost()
Definition: postentry.cpp:309
PostEntry::localImages
QList< BilboMedia * > localImages() const
Definition: postentry.cpp:335
QObject::parent
QObject * parent() const
PostEntry::setCurrentPost
void setCurrentPost(const BilboPost &post)
Definition: postentry.cpp:315
PostEntry::postTitle
QString postTitle() const
Definition: postentry.cpp:255
PostEntry::setCurrentPostBlogId
void setCurrentPostBlogId(int blog_id)
Definition: postentry.cpp:290
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