summaryrefslogtreecommitdiff
path: root/noncore/net/opie-smb/qsmb.h
blob: fba94d0728d11b5cf1745093c7a626ddbdce19b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef QSMB_H
#define QSMB_H

#include "qsmbbase.h"

#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>

#include <qlistview.h>
#include <pthread.h>

class Qsmb : public FormQPESMBBase
{ 
   Q_OBJECT

public:
   static QString appName() { return QString::fromLatin1("opie-smb"); }
   Qsmb( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
   ~Qsmb();
   void scan();
   void DoIt();

private:
   QListViewItem *top_element;
   QComboBox *hosts;
   pthread_t tpid;
   bool scanning;
   bool isMounted(const QString &);

public slots:
   void clear();
	 void scanClicked();
   void hostSelected(int);
   void DoItClicked();
   void umountIt();
   QString out;
   bool runCommand(const QStringList &);

};
void* runit(void *arg);
void* runitm(void *arg);

#endif // QSMB_H