Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > 598341c1887427ab768752b2f2b5c890 > files > 121

kmobiletools-debug-0.5.0-0.beta3.5mdv2008.1.i586.rpm

/***************************************************************************
*   Copyright (C) 2006 by                                                 *
*   Marcin Przylucki <marcin.przylucki@kdemail.net>                       *
*   Marco Gulino <marco@kmobiletools.org>                                 *
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
*   This program is distributed in the hope that it will be useful,       *
*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
*   GNU General Public License for more details.                          *
*                                                                         *
*   You should have received a copy of the GNU General Public License     *
*   along with this program; if not, write to the                         *
*  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,       *
*  Boston, MA 02110-1301, USA.                                            *
***************************************************************************/

#ifndef KIO_OBEXPROTOCOL_H
#define KIO_OBEXPROTOCOL_H

#include <kio/slavebase.h>

#include "obeximpl.h"


/**
@author Marcin Przylucki
*/
class kio_obexProtocol : public KIO::SlaveBase
{
public:
    kio_obexProtocol(const QCString &pool_socket, const QCString &app_socket);
    ~kio_obexProtocol();

    void listDir(const KURL &url);
    void stat(const KURL &url);
    void get(const KURL &url);
    void del(const KURL &url, bool isfile);
    void special(const QByteArray &data);
    void mkdir( const KURL &url, int permissions );
//     void finished();

    private:
        void listRoot(const KURL &url);
        void put(const KURL &url, int permissions, bool overwrite, bool resume);
        void disconnectTimeout();
        void setHost(const QString &host, int port, const QString &user, const QString &pass );
        OBEXImpl m_impl;
        QString s_host;
};

#endif