1
/***************************************************************************
2
smb4kauthinfo.cpp - This class provides a container for the
6
copyright : (C) 2004-2007 by Alexander Reinholdt
7
email : dustpuppy@users.berlios.de
8
***************************************************************************/
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. *
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. *
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, *
25
***************************************************************************/
27
// application specific includes
28
#include "smb4kauthinfo.h"
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() )
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() )
43
Smb4KAuthInfo::~Smb4KAuthInfo()
48
void Smb4KAuthInfo::setUser( const QString &user )
50
m_user = user.toLocal8Bit();
54
void Smb4KAuthInfo::setPassword( const QString &passwd )
56
m_password = passwd.toLocal8Bit();
60
void Smb4KAuthInfo::setShare( const QString &share )
66
void Smb4KAuthInfo::setHost( const QString &host )
72
void Smb4KAuthInfo::setWorkgroup( const QString &workgroup )
74
m_workgroup = workgroup;