00001 /*************************************************************************** 00002 * Copyright (C) 2004 by Tomeu Borras Riera * 00003 * tborras@conetxia.com * 00004 * http://www.iglues.org * 00005 * * 00006 * This program is free software; you can redistribute it and/or modify * 00007 * it under the terms of the GNU General Public License as published by * 00008 * the Free Software Foundation; either version 2 of the License, or * 00009 * (at your option) any later version. * 00010 * * 00011 * This program is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU General Public License * 00017 * along with this program; if not, write to the * 00018 * Free Software Foundation, Inc., * 00019 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00020 ***************************************************************************/ 00021 00022 #ifndef EMPRESATPV_H 00023 #define EMPRESATPV_H 00024 00025 #include <QObject> 00026 #include <QAssistantClient> 00027 #include <QLibraryInfo> 00028 00029 #include "postgresiface2.h" 00030 #include "listventanas.h" 00031 #include "qworkspace2.h" 00032 #include "empresabase.h" 00033 #include "splashscreen.h" 00034 #include "ticket.h" 00035 #include "input.h" 00036 00037 00038 class BulmaTPV; 00039 00041 00044 class EmpresaTPV : public EmpresaBase, public Input { 00045 private: 00047 BulmaTPV *m_bulmaTPV; 00048 QList<Ticket *> m_listaTickets; 00049 Ticket *m_ticketActual; 00050 00051 public: 00052 EmpresaTPV(BulmaTPV *bges); 00053 virtual ~EmpresaTPV(); 00054 void createMainWindows(Splash *); 00055 void guardaConf(); 00056 void cargaConf(); 00057 Ticket *newTicket(); 00058 void cobrar(); 00059 void z(); 00060 void x(); 00061 Ticket *ticketActual() {return m_ticketActual;}; 00062 QList<Ticket *> *listaTickets() {return &m_listaTickets;}; 00063 void setTicketActual(Ticket *tick) {m_ticketActual = tick;}; 00064 00065 }; 00066 00067 #endif 00068
1.5.1