00001 /* 00002 =. This file is part of the OPIE Project 00003 .=l. Copyright (c) 2002-2005 Kurt Korbatits <support@midget.net.au> 00004 .>+-= Copyright (c) 2005 L. Potter <lpotter@trolltech.com> 00005 _;:, .> :=|. This program is free software; you can 00006 .> <`_, > . <= redistribute it and/or modify it under 00007 :`=1 )Y*s>-.-- : the terms of the GNU General Public 00008 .="- .-=="i, .._ License as published by the Free Software 00009 - . .-<_> .<> Foundation; either version 2 of the License, 00010 ._= =} : or (at your option) any later version. 00011 .%`+i> _;_. 00012 .i_,=:_. -<s. This program is distributed in the hope that 00013 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00014 : .. .:, . . . without even the implied warranty of 00015 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00016 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00017 ..}^=.= = ; General Public License for more 00018 ++= -. .` .: details. 00019 : = ...= . :.=- 00020 -. .:....=;==+<; You should have received a copy of the GNU 00021 -_. . . )=. = General Public License along with 00022 -- :-=` this library; see the file COPYING.BIN. 00023 If not, write to the Free Software Foundation, 00024 Inc., 59 Temple Place - Suite 330, 00025 Boston, MA 02111-1307, USA. 00026 00027 */ 00028 00029 #ifndef QSMB_H 00030 #define QSMB_H 00031 00032 #include "qsmbbase.h" 00033 00034 #include <stdlib.h> 00035 #include <stdlib.h> 00036 #include <stdio.h> 00037 00038 #include <qlistview.h> 00039 #include <pthread.h> 00040 00041 #include <qlistview.h> 00042 00043 class Qsmb : public FormQPESMBBase 00044 { 00045 Q_OBJECT 00046 00047 public: 00048 static QString appName() { return QString::fromLatin1("opie-smb"); } 00049 Qsmb( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 00050 ~Qsmb(); 00051 void scan(); 00052 void DoIt(); 00053 00054 private: 00055 QListViewItem *top_element; 00056 QComboBox *hosts; 00057 pthread_t tpid; 00058 bool scanning; 00059 bool isMounted(const QString &); 00060 QString getMount(const QString &); 00061 00062 public slots: 00063 void clear(); 00064 void scanClicked(); 00065 void hostSelected(int); 00066 void DoItClicked(); 00067 void umountIt(); 00068 QString out; 00069 bool runCommand(const QStringList &); 00070 00071 private slots: 00072 void TextViewClicked(QListViewItem*); 00073 }; 00074 void* runit(void *arg); 00075 void* runitm(void *arg); 00076 00077 #endif // QSMB_H
1.4.2