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

kmobiletools

p2kimpl.h

Go to the documentation of this file.
00001 /***************************************************************************
00002    Copyright (c) 2004 Kevin Ottens <ervin ipsquad net>
00003    Rearranged by Marco Gulino <marco@kmobiletools.org> for the mobile protocol
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 2 of the License, or
00007    (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this program; if not, write to the
00016    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018  ***************************************************************************/
00019 
00020 #ifndef P2KIMPL_H
00021 #define P2KIMPL_H
00022 
00023 #include <kio/global.h>
00024 #include <kio/job.h>
00025 #include <kurl.h>
00026 #include <dcopobject.h>
00027 
00028 #include <qobject.h>
00029 #include <qstring.h>
00030 //Added by qt3to4:
00031 #include <Q3ValueList>
00032 
00033 #include <p2kmoto.h>
00034 
00035 class P2KWrapper;
00036 class P2KImpl : public QObject
00037 {
00038     Q_OBJECT
00039 public:
00040     P2KImpl();
00041 
00042     void createTopLevelEntry(KIO::UDSEntry& entry) const;
00043 
00044  bool listRoot(const KUrl &url, Q3ValueList<KIO::UDSEntry> &list);
00045  bool listDirectory(const KUrl &url, Q3ValueList<KIO::UDSEntry> &list);
00046  bool statEntry(const KUrl &url, KIO::UDSEntry &entry);
00047  P2KWrapper* wrapper() { return p2kWrapper; }
00048 
00049     int lastErrorCode() const { return m_lastErrorCode; }
00050     QString lastErrorMessage() const { return m_lastErrorMessage; }
00051 
00052 private slots:
00053     void slotEntries(KIO::Job *job, const KIO::UDSEntryList &list);
00054     void slotResult(KIO::Job *job);
00055 
00056 private:
00057     void createEntry(KIO::UDSEntry& entry, const QString &directory, const QString &file, bool isDrive=false);
00058     void createEntry(KIO::UDSEntry& entry, const QString &directory, p2k_fileInfo &file);
00059     void createEntry(KIO::UDSEntry& entry, const KUrl &url, p2k_fileInfo &file);
00060 
00061     bool m_lastListingEmpty;
00062 
00065     int m_lastErrorCode;
00066     QString m_lastErrorMessage;
00067  P2KWrapper *p2kWrapper;
00068 public slots:
00069     void fetchFilesList();
00070     int getFile(const KUrl &url, char* buffer);
00071 };
00072 
00073 #endif

kmobiletools

Skip menu "kmobiletools"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal