File: FLInterface.cpp

package info (click to toggle)
facturalux 0.4-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,040 kB
  • ctags: 1,359
  • sloc: ansic: 15,260; cpp: 12,761; sh: 10,520; perl: 2,023; makefile: 692; xml: 194
file content (82 lines) | stat: -rw-r--r-- 2,352 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/***************************************************************************
                          FLInterface.cpp  -  description
                             -------------------
    begin                : Mon Jun 10 2002
    copyright            : (C) 2002 by Federico Albujer Zornoza
    email                : mail@infosial.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include "FLInterface.h"
#include "FLAlbaranes.h"
#include "FLMasterAlbaranes.h"
#include "FLArticulos.h"
#include "FLLineasAlbaran.h"
#include "FLFactura.h"
#include "FLStocks.h"
#include "FLMasterArticulos.h"
#include "FLMasterInventario.h"
#include "FLInventario.h"
#include "FLLineasFactura.h"

FLInterface::FLInterface ()
{
}

FLInterface::~FLInterface ()
{
}

FLReceiver *
FLInterface::getReceiver (const QString & n)
{

if (n == "flfactura")
    return new FLFactura ();
    
if (n== "fllineasfactura")
	return new FLLineasFactura ();
	
if (n == "flalbaranesventas")
	return new FLAlbaranes (false);

  if (n == "flmasteralbaranesventas")
	return new FLMasterAlbaranes (false);

  if (n == "flalbaranescompras")
	return new FLAlbaranes (true);

  if (n == "flmasteralbaranescompras")
	return new FLMasterAlbaranes (true);
  
  if (n == "flmasterarticulos")
  	return new FLMasterArticulos ();
  
  if (n == "flarticulos")
	return new FLArticulos ();

  if (n == "fllineasalbaranventas")
        return new FLLineasAlbaran(false);

  if (n == "fllineasalbarancompras")
        return new FLLineasAlbaran(true);
  
  if (n == "flstocks")
  	return new FLStocks ();
  
  if (n == "flmasterinventario")
  	return new FLMasterInventario ();
  
  if (n == "flinventario")
  	return new FLInventario ();

  return 0;
}