summaryrefslogtreecommitdiffstats
path: root/kbarcode/barkodeengine.cpp
blob: f05440e2d5c58dfb10a2a50c538f6012bc3051d7 (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
47
48
49
50
51
52
53
54
55
/***************************************************************************
                          barkodeengine.cpp  -  description
                             -------------------
    begin                : Fri Nov 05 2004
    copyright            : (C) 2002 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.                                   *
 *                                                                         *
 ***************************************************************************/

#include "barkodeengine.h"
#include "barkode.h"

BarkodeEngine::BarkodeEngine()
{
    m_valid = false;
    barkode = NULL;
}

BarkodeEngine::~BarkodeEngine()
{
}

BarkodeEngineOptions* BarkodeEngine::options()
{
    return NULL;
}

EmptyEngine::EmptyEngine()
    : BarkodeEngine()
{
}

void EmptyEngine::update( const QPaintDevice* )
{
    // Do nothing
}

const QSize EmptyEngine::size() const
{
    return QSize( 150, 80 );
}

void EmptyEngine::drawBarcode(  QPainter & painter, int x, int y )
{
    barkode->drawInvalid( painter, x, y );
}