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

blogilo

Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
PostEntry Class Reference

#include <postentry.h>

Inheritance diagram for PostEntry:
Inheritance graph
[legend]

Public Slots

void settingsChanged ()
 

Signals

void postPublishingDone (bool isError, const QString &customMessage)
 
void postSavedLocally ()
 
void postSavedTemporary ()
 
void postTitleChanged (const QString &title)
 
void showStatusMessage (const QString &message, bool isPermanent)
 
void sigBusy (bool isBusy)
 
void textChanged ()
 

Public Member Functions

 PostEntry (QWidget *parent)
 
 ~PostEntry ()
 
BilboPost * currentPost ()
 
int currentPostBlogId () const
 
Qt::LayoutDirection defaultLayoutDirection () const
 
QString postTitle () const
 
void saveLocally ()
 
void setCurrentPost (const BilboPost &post)
 
void setCurrentPostBlogId (int blog_id)
 
void setDefaultLayoutDirection (Qt::LayoutDirection direction)
 
void setPostBody (const QString &content, const QString &additionalContent=QString())
 
void setPostTitle (const QString &title)
 
void submitPost (int blogId, const BilboPost &postData)
 
bool uploadMediaFiles (Backend *backend=0)
 

Protected Slots

void deleteProgressBar ()
 
void saveTemporary ()
 
void showProgressBar ()
 
void slotError (const QString &errMsg)
 
void slotFocusEditor ()
 
void slotPostModified ()
 
void slotPostPublished (int blog_id, BilboPost *post)
 
void slotSetPostPreview ()
 
void slotSyncEditors (int index)
 
void slotTitleChanged ()
 

Protected Member Functions

QString htmlContent () const
 
QList< BilboMedia * > localImages () const
 
QString plainTextContent () const
 
void replaceImageSrc (const QString &src, const QString &dest)
 
void setHtmlContent (const QString &content)
 

Detailed Description

Post Entry Widget contains Editor, and Title box.

Author
Mehrdad Momeny <mehrd.nosp@m.ad.m.nosp@m.omeny.nosp@m.@gma.nosp@m.il.co.nosp@m.m>
Golnaz Nilieh <g382n.nosp@m.ilie.nosp@m.h@gma.nosp@m.il.c.nosp@m.om>

Definition at line 40 of file postentry.h.

Constructor & Destructor Documentation

PostEntry::PostEntry ( QWidget *  parent)
explicit

Definition at line 93 of file postentry.cpp.

PostEntry::~PostEntry ( )

Definition at line 111 of file postentry.cpp.

Member Function Documentation

BilboPost * PostEntry::currentPost ( )

Definition at line 309 of file postentry.cpp.

int PostEntry::currentPostBlogId ( ) const

Definition at line 285 of file postentry.cpp.

Qt::LayoutDirection PostEntry::defaultLayoutDirection ( ) const

Definition at line 323 of file postentry.cpp.

void PostEntry::deleteProgressBar ( )
protectedslot

Definition at line 473 of file postentry.cpp.

QString PostEntry::htmlContent ( ) const
protected

Returns the editor current text in html format Synchronizes HtmlEditor and editor tabs, by sending content of the current one to another.

then copies the content of HtmlEditor into the variable mHtmlContent, and returns it.

Returns
an String which contains html text

Definition at line 227 of file postentry.cpp.

QList< BilboMedia * > PostEntry::localImages ( ) const
protected

Definition at line 335 of file postentry.cpp.

QString PostEntry::plainTextContent ( ) const
protected

Definition at line 237 of file postentry.cpp.

void PostEntry::postPublishingDone ( bool  isError,
const QString &  customMessage 
)
signal

This signal emitted when a post manipulation job e.g.

Publishing a new post finished.

Parameters
isErrorIf an error occurred on publishing this will be TRUE. Otherwise FLASE
customMessageA Custom message will be shown on StatusBar.
void PostEntry::postSavedLocally ( )
signal
void PostEntry::postSavedTemporary ( )
signal

This signal is emitted when the post is saved temporarily!

QString PostEntry::postTitle ( ) const

Definition at line 255 of file postentry.cpp.

void PostEntry::postTitleChanged ( const QString &  title)
signal

emitted when title of this entry changed.

Parameters
titleis a QString which contains new title.
void PostEntry::replaceImageSrc ( const QString &  src,
const QString &  dest 
)
protected

Definition at line 340 of file postentry.cpp.

void PostEntry::saveLocally ( )

Definition at line 482 of file postentry.cpp.

void PostEntry::saveTemporary ( )
protectedslot

Definition at line 499 of file postentry.cpp.

void PostEntry::setCurrentPost ( const BilboPost &  post)

Definition at line 315 of file postentry.cpp.

void PostEntry::setCurrentPostBlogId ( int  blog_id)

Definition at line 290 of file postentry.cpp.

void PostEntry::setDefaultLayoutDirection ( Qt::LayoutDirection  direction)

Definition at line 328 of file postentry.cpp.

void PostEntry::setHtmlContent ( const QString &  content)
protected

Sets the given string as the HtmlEditor and VisualEditor content.

Parameters
content

Definition at line 242 of file postentry.cpp.

void PostEntry::setPostBody ( const QString &  content,
const QString &  additionalContent = QString() 
)

Definition at line 266 of file postentry.cpp.

void PostEntry::setPostTitle ( const QString &  title)

Definition at line 260 of file postentry.cpp.

void PostEntry::settingsChanged ( )
slot

Definition at line 116 of file postentry.cpp.

void PostEntry::showProgressBar ( )
protectedslot

Definition at line 464 of file postentry.cpp.

void PostEntry::showStatusMessage ( const QString &  message,
bool  isPermanent 
)
signal

To show a message on statusBar.

Parameters
messageMessage to be shown
isPermanentIf it's true the message will not have a timeout! so it will be shown until next message arrived
void PostEntry::sigBusy ( bool  isBusy)
signal

This signal is emitted for operations in background, like request of some data from the web.

Parameters
isBusyif it's true, the operation is in progress. otherwise, it is finished.
void PostEntry::slotError ( const QString &  errMsg)
protectedslot

Definition at line 380 of file postentry.cpp.

void PostEntry::slotFocusEditor ( )
protectedslot

Definition at line 178 of file postentry.cpp.

void PostEntry::slotPostModified ( )
protectedslot

Definition at line 513 of file postentry.cpp.

void PostEntry::slotPostPublished ( int  blog_id,
BilboPost *  post 
)
protectedslot

Definition at line 444 of file postentry.cpp.

void PostEntry::slotSetPostPreview ( )
protectedslot

Definition at line 220 of file postentry.cpp.

void PostEntry::slotSyncEditors ( int  index)
protectedslot

Sets the content of the current tab as other tabs' contents, to apply recent changes. this function executes each time the user switches between tabs.

Definition at line 190 of file postentry.cpp.

void PostEntry::slotTitleChanged ( )
protectedslot

Definition at line 248 of file postentry.cpp.

void PostEntry::submitPost ( int  blogId,
const BilboPost &  postData 
)

Definition at line 388 of file postentry.cpp.

void PostEntry::textChanged ( )
signal

This signal is emitted when the content of VisualEditor or HtmlEditor changes.

bool PostEntry::uploadMediaFiles ( Backend *  backend = 0)

Will Upload media files not uploaded yet, and return true on success and false on failure.

Parameters
backendA Backend instant to use! will create one if NULL
Returns
true on success and false on failure.

Definition at line 345 of file postentry.cpp.


The documentation for this class was generated from the following files:
  • postentry.h
  • postentry.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:44 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

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