movabletype.h

Go to the documentation of this file.
00001 /*
00002   This file is part of the kblog library.
00003 
00004   Copyright (c) 2007-2009 Christian Weilbach <christian_weilbach@web.de>
00005   Copyright (c) 2007 Mike Arthur <mike@mikearthur.co.uk>
00006 
00007   This library is free software; you can redistribute it and/or
00008   modify it under the terms of the GNU Library General Public
00009   License as published by the Free Software Foundation; either
00010   version 2 of the License, or (at your option) any later version.
00011 
00012   This library is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015   Library General Public License for more details.
00016 
00017   You should have received a copy of the GNU Library General Public License
00018   along with this library; see the file COPYING.LIB.  If not, write to
00019   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020   Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #ifndef KBLOG_MOVABLETYPE_H
00024 #define KBLOG_MOVABLETYPE_H
00025 
00026 #include <kblog/metaweblog.h>
00027 
00028 class KUrl;
00029 
00039 namespace KBlog {
00040 
00041     class MovableTypePrivate;
00060 class KBLOG_EXPORT MovableType : public MetaWeblog
00061 {
00062   Q_OBJECT
00063   public:
00070     explicit MovableType( const KUrl &server, QObject *parent = 0 );
00071 
00075     virtual ~MovableType();
00076 
00080     QString interfaceName() const;
00081 
00090     void listRecentPosts( int number );
00091 
00102     virtual void listTrackBackPings( KBlog::BlogPost *post );
00103 
00104     void createPost( KBlog::BlogPost *post );
00105 
00106     void modifyPost( KBlog::BlogPost *post );
00107 
00108     void fetchPost( KBlog::BlogPost *post );
00109 
00110   Q_SIGNALS:
00119     void listedTrackBackPings( KBlog::BlogPost *post, const QList<QMap<QString,QString> > &pings );
00120 
00121   protected:
00125     MovableType( const KUrl &server, MovableTypePrivate &dd, QObject *parent = 0 );
00126 
00127   private:
00128     Q_DECLARE_PRIVATE( MovableType )
00129     Q_PRIVATE_SLOT( d_func(),
00130                     void slotListTrackBackPings( const QList<QVariant> &, const QVariant & ) )
00131     Q_PRIVATE_SLOT( d_func(),
00132                     void slotCreatePost( const QList<QVariant> &, const QVariant & ) )
00133     Q_PRIVATE_SLOT( d_func(),
00134                     void slotModifyPost( const QList<QVariant> &, const QVariant & ) )
00135     Q_PRIVATE_SLOT( d_func(),
00136                     void slotGetPostCategories(const QList<QVariant>&,const QVariant&) )
00137     Q_PRIVATE_SLOT( d_func(),
00138                     void slotSetPostCategories(const QList<QVariant>&,const QVariant&) )
00139     Q_PRIVATE_SLOT( d_func(),
00140                     void slotTriggerCreatePost() )
00141     Q_PRIVATE_SLOT( d_func(),
00142                     void slotTriggerModifyPost() )
00143     Q_PRIVATE_SLOT( d_func(),
00144                     void slotTriggerFetchPost() )
00145 };
00146 
00147 } //namespace KBlog
00148 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys