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

kwebsnap.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 
00021 #ifndef KWEBSNAP_H
00022 #define KWEBSNAP_H
00023 
00033 #ifdef HAVE_CONFIG_H
00034 #include <config.h>
00035 #endif
00036 
00037 #include <kapplication.h>
00038 #include <kmainwindow.h>
00039 
00040 #include "ftpcontrol.h"
00041 #include "grabber.h"
00042 #include "logger.h"
00043 
00044 class KWebSnapWidget;
00045 class WSysTray;
00046 class ConfigDialog;
00047 class WSHttpServer;
00048 
00056 class KWebSnap : public KMainWindow
00057 {
00058         Q_OBJECT
00059   
00060 public:
00066         KWebSnap(QWidget *parent= 0, const char *name= 0);
00068         ~KWebSnap();
00069         
00070 public slots:
00072         virtual void          slotHelp();
00073         
00078         virtual void          slotConfig();
00079         
00081         virtual void          slotQuit();
00082         
00084         virtual void          slotAbout();
00085         
00089         virtual void          slotStop();
00090         
00092         virtual void          slotStart();
00093         
00099         virtual void slotOnTimer();
00100         
00106         virtual void          slotSnapshot();
00107         
00112         virtual void slotSnapSend();
00113         
00114 private:
00117         void updatePreview(const QPixmap& pixmap);
00118         
00119 private slots:
00121                 virtual void startTimer();
00122                 
00127                 virtual bool close();
00128         
00130                 virtual void applyPreferences();
00131                 
00132 protected:
00134         virtual bool queryClose();
00135 
00136 protected slots:
00137         
00138 signals:
00143         void timeLeft(int n);
00145         void timeout();
00147         void start();
00149         void stop();
00151         void message(const QString& msg, int type = Configuration::Normal);
00153         void error(const QString& msg);
00154         
00155 private:
00156         bool m_quit;                    
00157         int m_secondsLeft;              
00158         int m_scount;                   
00159         
00160         //QPixmap m_snapshot;           ///< The pixmap of the desktop.
00161         QTimer* m_timer;                
00162                         
00163         Logger m_logger;                                
00164         Grabber m_grabber;                              
00165         FtpControl m_ftp;                               
00166         KWebSnapWidget* m_mainWidget;   
00167         WSysTray* m_systray;                    
00168         ConfigDialog* m_confDialog;             
00169         WSHttpServer* m_server;                 
00170 };
00171 
00172 #endif
00173 

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