1 /////////////////////////////////////////////////////////////////////////////
3 // Project: SMB kioslave for KDE
5 // File: Top level implementation file for kio_smb.cpp
7 // Abstract: member function implementations for SMBSlave
9 // Author(s): Matthew Peterson <mpeterson@caldera.com>
11 //---------------------------------------------------------------------------
13 // Copyright (c) 2000 Caldera Systems, Inc.
15 // This program is free software; you can redistribute it and/or modify it
16 // under the terms of the GNU General Public License as published by the
17 // Free Software Foundation; either version 2.1 of the License, or
18 // (at your option) any later version.
20 // This program is distributed in the hope that it will be useful,
21 // but WITHOUT ANY WARRANTY; without even the implied warranty of
22 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 // GNU Lesser General Public License for more details.
25 // You should have received a copy of the GNU General Public License
26 // along with this program; see the file COPYING. If not, please obtain
27 // a copy from http://www.gnu.org/copyleft/gpl.html
29 /////////////////////////////////////////////////////////////////////////////
32 #include "kio_smb_internal.h"
33 #include <kcomponentdata.h>
35 //===========================================================================
36 SMBSlave::SMBSlave(const QByteArray
& pool
, const QByteArray
& app
)
37 : SlaveBase( "smb", pool
, app
), m_openFd(-1)
39 m_initialized_smbc
= false;
41 //read in the default workgroup info...
42 reparseConfiguration();
44 //initialize the library...
45 auth_initialize_smbc();
49 //===========================================================================
55 //===========================================================================
56 int KDE_EXPORT
kdemain( int argc
, char **argv
)
58 KComponentData
componentData("kio_smb");
61 kDebug(KIO_SMB
) << "Usage: kio_smb protocol domain-socket1 domain-socket2"
66 SMBSlave
slave( argv
[2], argv
[3] );