/home/croftj/photogrotto/photogrotto.h

00001 /*********************************************************************************
00002 **
00003 **   $Id: //depot/WorkInProgress/photogrotto/photogrotto.h#3 $
00004 **   Copyright (c) 2007 Joe Croft joe@croftj.net
00005 **   
00006 **   This file is part of Photogrotto
00007 **
00008 **   Photogrotto is free software; you can redistribute it and/or modify
00009 **   it under the terms of the GNU General Public License as published by
00010 **   the Free Software Foundation; either version 2 of the License, or
00011 **   (at your option) any later version.
00012 **
00013 **   Foobar is distributed in the hope that it will be useful,
00014 **   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 **   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 **   GNU General Public License for more details.
00017 **
00018 **   You should have received a copy of the GNU General Public License
00019 **   along with Foobar; if not, write to the Free Software
00020 **   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021 **
00022 *********************************************************************************/
00023 
00024 # include <QDomDocument>
00025 # include <QHostAddress>
00026 # include <QString>
00027 # include <QTcpServer>
00028 # include "dbPhotoService.h"
00029 
00030 #ifndef PHOTOGROTTO_H
00031 #define PHOTOGROTTO_H
00032 
00033 class PhotoGrotto : public QTcpServer
00034 {
00035    Q_OBJECT
00036 
00037 public:
00038    PhotoGrotto(QString confName, QObject *parent = 0);
00039 
00040 protected slots:
00041    void sendData(QTcpSocket*, QByteArray);
00042    void haveCloseSocket(QTcpSocket*);
00043 
00044 protected:
00045    virtual void incomingConnection(int sock);
00046    void getTcpParms();
00047 
00048 private:
00049    QString        xmlConfName;
00050    QString        err;
00051    QString        error_str;
00052    QDomDocument   doc;
00053    int            port;
00054    QHostAddress   address;
00055 };
00056 
00057 #endif

Generated on Fri May 4 11:21:12 2007 for PhotoGrotto by  doxygen 1.5.0