metaweblog_p.h

00001 /*
00002     This file is part of the kblog library.
00003 
00004     Copyright (c) 2006-2007 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 METAWEBLOG_P_H
00024 #define METAWEBLOG_P_H
00025 
00026 #include "metaweblog.h"
00027 #include "blogger1_p.h"
00028 
00029 #include <kxmlrpcclient/client.h>
00030 
00031 namespace KBlog {
00032 
00033 class MetaWeblogPrivate : public Blogger1Private
00034 {
00035   public:
00036     QMap<QString,QString> mCategories;
00037     QList<QMap<QString,QString> > mCategoriesList;
00038     unsigned int mCallMediaCounter;
00039     QMap<unsigned int,KBlog::BlogMedia*> mCallMediaMap;
00040     MetaWeblogPrivate();
00041     ~MetaWeblogPrivate();
00042     virtual void loadCategories();
00043     virtual void saveCategories();
00044     virtual void slotListCategories( const QList<QVariant> &result,
00045                                      const QVariant &id );
00046     virtual void slotCreateMedia( const QList<QVariant> &result,
00047                                   const QVariant &id );
00048     Q_DECLARE_PUBLIC( MetaWeblog )
00049 
00050     QList<QVariant> defaultArgs( const QString &id = QString() );
00051     bool readPostFromMap( BlogPost *post, const QMap<QString, QVariant> &postInfo );
00052     bool readArgsFromPost( QList<QVariant> *args, const BlogPost &post );
00053     QString getCallFromFunction( FunctionToCall type );
00054     bool mCatLoaded;
00055 };
00056 
00057 }
00058 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys