add more spacing
[personal-kdebase.git] / runtime / kioslave / smb / kio_smb.cpp
blobc59100299d9429eadbda92ec4b133d924ca4def0
1 /////////////////////////////////////////////////////////////////////////////
2 //
3 // Project: SMB kioslave for KDE
4 //
5 // File: Top level implementation file for kio_smb.cpp
6 //
7 // Abstract: member function implementations for SMBSlave
8 //
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 /////////////////////////////////////////////////////////////////////////////
31 #include "kio_smb.h"
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 //===========================================================================
50 SMBSlave::~SMBSlave()
55 //===========================================================================
56 int KDE_EXPORT kdemain( int argc, char **argv )
58 KComponentData componentData("kio_smb");
59 if( argc != 4 )
61 kDebug(KIO_SMB) << "Usage: kio_smb protocol domain-socket1 domain-socket2"
62 << endl;
63 return -1;
66 SMBSlave slave( argv[2], argv[3] );
68 slave.dispatchLoop();
70 return 0;