~ubuntu-branches/ubuntu/precise/smb4k/precise

« back to all changes in this revision

Viewing changes to core/smb4kauthinfo.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Richard A. Johnson
  • Date: 2008-11-23 12:14:34 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20081123121434-88cpidapbcqteud1
Tags: 0.10.1-0ubuntu1
* New upstream release for KDE 4
* Closes
  - (LP: #238011)
  - (LP: #248510)
  - (LP: #261803)
  - (LP: #262225)
  - (LP: #275539)
* Updated debian/
  - control: updated for new deps and removed old deps, bumped versions,
    modified Maintainer
  - rules: removed all but the kde4.mk for cdbs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
    smb4kauthinfo.cpp  -  This class provides a container for the
 
3
    authentication data.
 
4
                             -------------------
 
5
    begin                : Sa Feb 28 2004
 
6
    copyright            : (C) 2004-2007 by Alexander Reinholdt
 
7
    email                : dustpuppy@users.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
// application specific includes
 
28
#include "smb4kauthinfo.h"
 
29
 
 
30
 
 
31
Smb4KAuthInfo::Smb4KAuthInfo( const QString &wg, const QString &h, const QString &s, const QString &u, const QString &p )
 
32
: m_workgroup( wg ), m_host( h ), m_share( s ), m_user( u.toLocal8Bit() ), m_password( p.toLocal8Bit() )
 
33
{
 
34
}
 
35
 
 
36
 
 
37
Smb4KAuthInfo::Smb4KAuthInfo( Smb4KAuthInfo &i )
 
38
: m_workgroup( i.workgroup() ), m_host( i.host() ), m_share( i.share() ), m_user( i.user() ), m_password( i.password() )
 
39
{
 
40
}
 
41
 
 
42
 
 
43
Smb4KAuthInfo::~Smb4KAuthInfo()
 
44
{
 
45
}
 
46
 
 
47
 
 
48
void Smb4KAuthInfo::setUser( const QString &user )
 
49
{
 
50
  m_user = user.toLocal8Bit();
 
51
}
 
52
 
 
53
 
 
54
void Smb4KAuthInfo::setPassword( const QString &passwd )
 
55
{
 
56
  m_password = passwd.toLocal8Bit();
 
57
}
 
58
 
 
59
 
 
60
void Smb4KAuthInfo::setShare( const QString &share )
 
61
{
 
62
  m_share = share;
 
63
}
 
64
 
 
65
 
 
66
void Smb4KAuthInfo::setHost( const QString &host )
 
67
{
 
68
  m_host = host;
 
69
}
 
70
 
 
71
 
 
72
void Smb4KAuthInfo::setWorkgroup( const QString &workgroup )
 
73
{
 
74
  m_workgroup = workgroup;
 
75
}
 
76