author | llornkcor <llornkcor> | 2005-08-16 10:22:06 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2005-08-16 10:22:06 (UTC) |
commit | e68f54c2f00d8e7a8e753722a50b47484c1124ee (patch) (unidiff) | |
tree | fc2076fbc51424f59d10ad1e88e3bdbb2ed78411 | |
parent | dd4792fe0ac89205e7d7a7e38f3d4350e19f25d7 (diff) | |
download | opie-e68f54c2f00d8e7a8e753722a50b47484c1124ee.zip opie-e68f54c2f00d8e7a8e753722a50b47484c1124ee.tar.gz opie-e68f54c2f00d8e7a8e753722a50b47484c1124ee.tar.bz2 |
proper opie header and maintainter
-rw-r--r-- | noncore/net/opie-smb/opie-smb.control | 2 | ||||
-rw-r--r-- | noncore/net/opie-smb/qsmb.cpp | 28 | ||||
-rw-r--r-- | noncore/net/opie-smb/qsmb.h | 28 |
3 files changed, 57 insertions, 1 deletions
diff --git a/noncore/net/opie-smb/opie-smb.control b/noncore/net/opie-smb/opie-smb.control index fc8c316..2ec46be 100644 --- a/noncore/net/opie-smb/opie-smb.control +++ b/noncore/net/opie-smb/opie-smb.control | |||
@@ -1,11 +1,11 @@ | |||
1 | Package: opie-smb | 1 | Package: opie-smb |
2 | Files: plugins/application/libopie-smb.so* bin/opie-smb bin/smbfind pics/opie-smb apps/Applications/opie-smb.desktop | 2 | Files: plugins/application/libopie-smb.so* bin/opie-smb bin/smbfind pics/opie-smb apps/Applications/opie-smb.desktop |
3 | Version: $QPE_VERSION$EXTRAVERSION | 3 | Version: $QPE_VERSION$EXTRAVERSION |
4 | Architecture: arm | 4 | Architecture: arm |
5 | Arch: arm | 5 | Arch: arm |
6 | Maintainer: Kurt Korbatits (support@midget.net.au) | 6 | Maintainer: ljp <lpotter@trolltech.com> |
7 | Section: Network | 7 | Section: Network |
8 | Priority: optional | 8 | Priority: optional |
9 | Description: Gui front end for samba utilities. | 9 | Description: Gui front end for samba utilities. |
10 | Source: | 10 | Source: |
11 | Depends: smbclient | 11 | Depends: smbclient |
diff --git a/noncore/net/opie-smb/qsmb.cpp b/noncore/net/opie-smb/qsmb.cpp index d35e09a..d74f240 100644 --- a/noncore/net/opie-smb/qsmb.cpp +++ b/noncore/net/opie-smb/qsmb.cpp | |||
@@ -1,32 +1,60 @@ | |||
1 | /* | ||
2 | =. This file is part of the OPIE Project | ||
3 | .=l. Copyright (c) 2002-2005 Kurt Korbatits <support@midget.net.au> | ||
4 | .>+-= Copyright (c) 2005 L. Potter <lpotter@trolltech.com> | ||
5 | _;:, .> :=|. This program is free software; you can | ||
6 | .> <`_, > . <= redistribute it and/or modify it under | ||
7 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | ||
8 | .="- .-=="i, .._ License as published by the Free Software | ||
9 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
10 | ._= =} : or (at your option) any later version. | ||
11 | .%`+i> _;_. | ||
12 | .i_,=:_. -<s. This program is distributed in the hope that | ||
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
14 | : .. .:, . . . without even the implied warranty of | ||
15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
17 | ..}^=.= = ; General Public License for more | ||
18 | ++= -. .` .: details. | ||
19 | : = ...= . :.=- | ||
20 | -. .:....=;==+<; You should have received a copy of the GNU | ||
21 | -_. . . )=. = General Public License along with | ||
22 | -- :-=` this library; see the file COPYING.BIN. | ||
23 | If not, write to the Free Software Foundation, | ||
24 | Inc., 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | ||
26 | |||
27 | */ | ||
28 | |||
1 | #include "qsmb.h" | 29 | #include "qsmb.h" |
2 | #include <qpushbutton.h> | 30 | #include <qpushbutton.h> |
3 | #include <qpe/qpeapplication.h> | 31 | #include <qpe/qpeapplication.h> |
4 | 32 | ||
5 | #include <string.h> | 33 | #include <string.h> |
6 | #include <qstring.h> | 34 | #include <qstring.h> |
7 | #include <qstringlist.h> | 35 | #include <qstringlist.h> |
8 | #include <qdir.h> | 36 | #include <qdir.h> |
9 | #include <qfileinfo.h> | 37 | #include <qfileinfo.h> |
10 | #include <qtabwidget.h> | 38 | #include <qtabwidget.h> |
11 | 39 | ||
12 | #include <qpe/process.h> | 40 | #include <qpe/process.h> |
13 | #include <qlabel.h> | 41 | #include <qlabel.h> |
14 | #include <qlineedit.h> | 42 | #include <qlineedit.h> |
15 | #include <qcombobox.h> | 43 | #include <qcombobox.h> |
16 | #include <qstringlist.h> | 44 | #include <qstringlist.h> |
17 | #include <qcheckbox.h> | 45 | #include <qcheckbox.h> |
18 | #include <qtextview.h> | 46 | #include <qtextview.h> |
19 | #include <qmessagebox.h> | 47 | #include <qmessagebox.h> |
20 | #include <qtextstream.h> | 48 | #include <qtextstream.h> |
21 | 49 | ||
22 | 50 | ||
23 | #include <pthread.h> | 51 | #include <pthread.h> |
24 | #include <signal.h> | 52 | #include <signal.h> |
25 | #include <ctype.h> | 53 | #include <ctype.h> |
26 | 54 | ||
27 | 55 | ||
28 | #include <netinet/in.h> | 56 | #include <netinet/in.h> |
29 | #include <arpa/inet.h> | 57 | #include <arpa/inet.h> |
30 | #include <rpc/clnt.h> | 58 | #include <rpc/clnt.h> |
31 | 59 | ||
32 | #include <sys/vfs.h> | 60 | #include <sys/vfs.h> |
diff --git a/noncore/net/opie-smb/qsmb.h b/noncore/net/opie-smb/qsmb.h index 175b2c3..7908837 100644 --- a/noncore/net/opie-smb/qsmb.h +++ b/noncore/net/opie-smb/qsmb.h | |||
@@ -1,32 +1,60 @@ | |||
1 | /* | ||
2 | =. This file is part of the OPIE Project | ||
3 | .=l. Copyright (c) 2002-2005 Kurt Korbatits <support@midget.net.au> | ||
4 | .>+-= Copyright (c) 2005 L. Potter <lpotter@trolltech.com> | ||
5 | _;:, .> :=|. This program is free software; you can | ||
6 | .> <`_, > . <= redistribute it and/or modify it under | ||
7 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | ||
8 | .="- .-=="i, .._ License as published by the Free Software | ||
9 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
10 | ._= =} : or (at your option) any later version. | ||
11 | .%`+i> _;_. | ||
12 | .i_,=:_. -<s. This program is distributed in the hope that | ||
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
14 | : .. .:, . . . without even the implied warranty of | ||
15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
17 | ..}^=.= = ; General Public License for more | ||
18 | ++= -. .` .: details. | ||
19 | : = ...= . :.=- | ||
20 | -. .:....=;==+<; You should have received a copy of the GNU | ||
21 | -_. . . )=. = General Public License along with | ||
22 | -- :-=` this library; see the file COPYING.BIN. | ||
23 | If not, write to the Free Software Foundation, | ||
24 | Inc., 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | ||
26 | |||
27 | */ | ||
28 | |||
1 | #ifndef QSMB_H | 29 | #ifndef QSMB_H |
2 | #define QSMB_H | 30 | #define QSMB_H |
3 | 31 | ||
4 | #include "qsmbbase.h" | 32 | #include "qsmbbase.h" |
5 | 33 | ||
6 | #include <stdlib.h> | 34 | #include <stdlib.h> |
7 | #include <stdlib.h> | 35 | #include <stdlib.h> |
8 | #include <stdio.h> | 36 | #include <stdio.h> |
9 | 37 | ||
10 | #include <qlistview.h> | 38 | #include <qlistview.h> |
11 | #include <pthread.h> | 39 | #include <pthread.h> |
12 | 40 | ||
13 | #include <qlistview.h> | 41 | #include <qlistview.h> |
14 | 42 | ||
15 | class Qsmb : public FormQPESMBBase | 43 | class Qsmb : public FormQPESMBBase |
16 | { | 44 | { |
17 | Q_OBJECT | 45 | Q_OBJECT |
18 | 46 | ||
19 | public: | 47 | public: |
20 | static QString appName() { return QString::fromLatin1("opie-smb"); } | 48 | static QString appName() { return QString::fromLatin1("opie-smb"); } |
21 | Qsmb( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 49 | Qsmb( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
22 | ~Qsmb(); | 50 | ~Qsmb(); |
23 | void scan(); | 51 | void scan(); |
24 | void DoIt(); | 52 | void DoIt(); |
25 | 53 | ||
26 | private: | 54 | private: |
27 | QListViewItem *top_element; | 55 | QListViewItem *top_element; |
28 | QComboBox *hosts; | 56 | QComboBox *hosts; |
29 | pthread_t tpid; | 57 | pthread_t tpid; |
30 | bool scanning; | 58 | bool scanning; |
31 | bool isMounted(const QString &); | 59 | bool isMounted(const QString &); |
32 | QString getMount(const QString &); | 60 | QString getMount(const QString &); |