summaryrefslogtreecommitdiffstats
path: root/kbarcode/batchiface.h
blob: 2f6f2012c91296c04d5fcc1a0b524066c69d482a (plain)
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
/***************************************************************************
                          batchiface.h  -  description
                             -------------------
    begin                : Sat Dec 27 23:54:28 CET 2003
    copyright            : (C) 2003 by Dominik Seichter
    email                : domseichter@web.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef BATCHIFACE_H
#define BATCHIFACE_H

#include <dcopobject.h>
#include <tqstringlist.h>
#include "batchprinter.h"

class BatchIface : virtual public DCOPObject
{
    K_DCOP

    public:
    k_dcop:
        virtual void setFilename( const TQString & url ) = 0;
        virtual void setImportCsvFile( const TQString & filename ) = 0;
        virtual void setImportSqlQuery( const TQString & query ) = 0;
        virtual void setNumLabels( const int n ) = 0;
        virtual void setOutputFormat( const int e ) = 0;
	virtual void setSerialNumber( const TQString & val, int inc ) = 0;

        virtual bool addItem( const TQString & article, const TQString & group, int count = 1, bool msg = true ) = 0;
	virtual bool existsArticle( const TQString & article ) = 0;
        virtual void loadFromFile( const TQString & url ) = 0;
        virtual void loadFromClipboard() = 0;
	virtual void printNow( const TQString & printer, bool bUserInteraction = true ) = 0;
};

#endif /* BATCHIFACE_H */