~ubuntu-branches/ubuntu/quantal/smb4k/quantal

« back to all changes in this revision

Viewing changes to core/smb4kprintinfo.cpp

  • Committer: Package Import Robot
  • Author(s): Fathi Boudra
  • Date: 2012-05-19 18:54:34 UTC
  • mfrom: (1.1.20)
  • Revision ID: package-import@ubuntu.com-20120519185434-duffny2n87214n1n
Tags: 1.0.1-1
* New upstream release.
* Update debian/compat: bump to 9.
* Update debian/control:
  - bump debhelper to 9.
  - bump kdelibs5-dev build dependency to 4:4.4.0.
  - bump Standards-Version to 3.9.3 (no changes needed).
  - Replace smbfs dependency by cifs-utils. (Closes: #638162)
* Update debian/copyright:
  - update upstream URL.
  - update upstream e-mail.
* Update debian/smb4k.lintian-overrides file.
* Update debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
    smb4kprintinfo  -  This is a container that carries information needed
3
 
    for printing.
4
 
                             -------------------
5
 
    begin                : Mo Apr 19 2004
6
 
    copyright            : (C) 2004-2008 by Alexander Reinholdt
7
 
    email                : dustpuppy@mail.berlios.de
8
 
 ***************************************************************************/
9
 
 
10
 
/***************************************************************************
11
 
 *   This program is free software; you can redistribute it and/or modify  *
12
 
 *   it under the terms of the GNU General Public License as published by  *
13
 
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 
 *   (at your option) any later version.                                   *
15
 
 *                                                                         *
16
 
 *   This program is distributed in the hope that it will be useful, but   *
17
 
 *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
18
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
19
 
 *   General Public License for more details.                              *
20
 
 *                                                                         *
21
 
 *   You should have received a copy of the GNU General Public License     *
22
 
 *   along with this program; if not, write to the                         *
23
 
 *   Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,   *
24
 
 *   MA  02111-1307 USA                                                    *
25
 
 ***************************************************************************/
26
 
 
27
 
// Qt includes
28
 
#include <QHostAddress>
29
 
 
30
 
// application specific includes
31
 
#include <smb4kprintinfo.h>
32
 
 
33
 
 
34
 
Smb4KPrintInfo::Smb4KPrintInfo( Smb4KShare *share )
35
 
: m_share( *share ), m_path( QString() ), m_copies( 0 )
36
 
{
37
 
}
38
 
 
39
 
 
40
 
Smb4KPrintInfo::Smb4KPrintInfo( const Smb4KPrintInfo &info )
41
 
: m_share( *info.shareItem() ), m_path( info.path() ), m_copies( info.copies() )
42
 
{
43
 
}
44
 
 
45
 
 
46
 
Smb4KPrintInfo::~Smb4KPrintInfo()
47
 
{
48
 
}
49
 
 
50
 
 
51
 
void Smb4KPrintInfo::setShareItem( Smb4KShare *share )
52
 
{
53
 
  m_share = *share;
54
 
}
55
 
 
56
 
 
57
 
void Smb4KPrintInfo::setPath( const QString &path )
58
 
{
59
 
  m_path = path;
60
 
}
61
 
 
62
 
 
63
 
void Smb4KPrintInfo::setCopies( int num )
64
 
{
65
 
  m_copies = num;
66
 
}
67