summaryrefslogtreecommitdiff
path: root/noncore/net/opie-smb/qsmb.h
blob: b406a1ebf8e0269afb1c9885f832c5cb05bbfb8b (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
#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;

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

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

#endif // QSMB_H