Main Page | Class List | File List | Class Members | File Members | Related Pages

ftpcontrol.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Bojan D.                                        *
00003  *   bojan_d@users.sourceforge.net                                         *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef FTPCONTROL_H
00021 #define FTPCONTROL_H
00022 
00032 #include <kio/netaccess.h>
00033 #include <kio/jobclasses.h>
00034 #include <kurl.h>
00035 
00036 #include <qguardedptr.h>
00037 #include <qobject.h>
00038 
00039 #include "configuration.h"
00040 
00051 class FtpControl : public QObject
00052 {
00053         Q_OBJECT
00054         
00055         public:
00061                 FtpControl(QObject *parent = 0, const char *name = 0);
00062         
00064                 virtual ~FtpControl();
00065                 
00066         public slots:
00070                 virtual void sendFiles();
00071                 
00075                 virtual void stop();
00076                 
00078                 virtual void sendOffline();
00079                 
00080         signals:
00082                 void startTransfer();
00084                 void finishTransfer();
00088                 void message(const QString& msg, int type);
00090                 void message(const QString& msg);
00092                 void error(const QString& msg);
00093                 
00094         protected:
00095                 QGuardedPtr<KIO::FileCopyJob> m_thumbJob;               
00096                 QGuardedPtr<KIO::FileCopyJob> m_mainJob;                
00097                 
00098                 KURL m_mainSrc;         
00099                 KURL m_mainDest;        
00100                 KURL m_thumbSrc;        
00101                 KURL m_thumbDest;       
00102                 
00103         
00104         private slots:
00109                 void jobFinished(KIO::Job* job);
00110                 
00114                 void sendThumb(const KURL & src, const KURL & dest, int permissions = -1);
00115                 
00119                 void sendMain(const KURL & src, const KURL & dest, int permissions = -1);
00120                 
00124                 void setupMain();
00125                 
00129                 void setupThumb();
00130                 
00134                 void setupOffline();
00135 };
00136 
00137 #endif

Generated on Mon Sep 5 12:52:33 2005 for kwebsnap.kdevelop by  doxygen 1.3.9.1