00001 /* 00002 * Universidade Federal de Campina Grande 00003 * Centro de Engenharia Elétrica e Informática 00004 * Laboratório de Sistemas Embarcados e Computação Pervasiva 00005 * BRisa Project / BRisa-Qt - http://brisa.garage.maemo.org 00006 * Filename: brisadevicexmlhandler.h 00007 * Created: 00008 * Description: Define BrisaDeviceXmlHandler Class. 00009 * Authors: Name <email> @since 2009 00010 * 00011 * 00012 * Copyright (C) <2009> <Embbeded Systems and Pervasive Computing Laboratory> 00013 * 00014 * BRisa-Qt is free software: you can redistribute it and/or modify 00015 * it under the terms of the GNU Lesser General Public License as 00016 * published by the Free Software Foundation, either version 3 of 00017 * the License, or (at your option) any later version. 00018 * 00019 * This program is distributed in the hope that it will be useful, 00020 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 * GNU General Public License for more details. 00023 * 00024 * You should have received a copy of the GNU Lesser General Public License 00025 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00026 * 00027 */ 00028 00029 #ifndef _BRISADEVICEXMLHANDLER_H 00030 #define _BRISADEVICEXMLHANDLER_H 00031 00032 #include <QXmlStreamWriter> 00033 #include <QString> 00034 #include <QFile> 00035 #include <QtDebug> 00036 00037 #include "brisaglobal.h" 00038 00039 namespace BrisaUpnp { 00040 00041 class BrisaDevice; 00042 00043 class BRISA_UPNP_EXPORT BrisaDeviceXMLHandler { 00044 public: 00045 void xmlGenerator(BrisaDevice *device, QFile *file); 00046 00047 private: 00048 void writeDevice(BrisaDevice *device); 00049 00050 QXmlStreamWriter *writer; 00051 }; 00052 00053 } 00054 00055 #endif /* _BRISADEVICEXMLHANDLER_H */ 00056
1.6.3