summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-gutenbrowser/LibraryDialog.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-gutenbrowser/LibraryDialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/LibraryDialog.h126
1 files changed, 126 insertions, 0 deletions
diff --git a/noncore/apps/opie-gutenbrowser/LibraryDialog.h b/noncore/apps/opie-gutenbrowser/LibraryDialog.h
new file mode 100644
index 0000000..f5bfe08
--- a/dev/null
+++ b/noncore/apps/opie-gutenbrowser/LibraryDialog.h
@@ -0,0 +1,126 @@
1/***************************************************************************
2 LibraryDialog.h - description
3 -------------------
4 begin : Sat Aug 19 2000
5 copyright : (C) 2000 -2004 by llornkcor
6 email : ljp@llornkcor.com
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 ***************************************************************************/
12#ifndef LIBRARYDIALOG_H
13#define LIBRARYDIALOG_H
14
15#include <qpe/config.h>
16
17#include "SearchDialog.h"
18#include "NetworkDialog.h"
19#include <qstringlist.h>
20#include <qdialog.h>
21#include <qcheckbox.h>
22#include <qdatetime.h>
23#include <qfile.h>
24#include <qheader.h>
25#include <qlistview.h>
26#include <qmessagebox.h>
27#include <qregexp.h>
28#include <qstring.h>
29#include <qtextstream.h>
30#include <qlabel.h>
31#include <stdlib.h>
32#include <qtabwidget.h>
33
34class QVBoxLayout;
35class QHBoxLayout;
36class QGridLayout;
37class QListView;
38class QListViewItem;
39class QPushButton;
40//class QTabWidget;
41class QWidget;
42//class Gutenbrowser;
43
44class LibraryDialog : public QDialog {
45 Q_OBJECT
46
47public:
48 LibraryDialog( QWidget* parent = 0, const char* name = 0 , bool modal = TRUE, WFlags fl = 0 );
49 ~LibraryDialog();
50
51 QTabWidget *tabWidget;
52 QListView *ListView1,*ListView2,*ListView3,*ListView4,*ListView5;
53 QWidget *widget_1,*widget_2,*widget_3,*widget_4,*widget_5,*widget_6;
54 QString ftp_host,ftp_base_dir;
55 QLabel *statusLabel;
56 QListViewItem *QList_Item1,*QList_Item2,*QList_Item3,*QList_Item4,*QList_Item5;
57 QStringList list,ItemStrlist,Searchlist,resultLs;
58// QStringList list1,list2,list3,list4;
59
60 QPushButton *buttonSearch,*buttonCancel,*buttonDownload,*buttonLibrary,*buttonNewList,*moreInfoButton;
61 QString new_index,old_index;
62 QFile newindexLib,indexLib;
63
64 int checked;
65 int i_binary;
66 bool useSmallInterface;
67bool indexLoaded;
68 QPushButton *cancel,*DownloadAll;
69 QCheckBox *checkBox,*httpBox,*authBox;
70// QCheckBox * httpBox;
71
72 QString filename;
73 QString downDir;
74 int ftpNumb;
75 int i;
76 QString year,title,number,file,author;
77 QString DlglistItemNumber,DlglistItemFile,DlglistItemYear,DlglistItemTitle,NewlistItemFile;
78 QString m_getFilePath;
79 QString Edir;
80
81 QString index;
82 QString IDontKnowWhy;
83 QString local_library;
84 QString local_index;
85 QString File_Name;
86 QString proxy_http;
87 int doitAll;
88 QString texter;
89// CConfigFile *config;
90 void parseSearchResults( QString resultStr);
91
92public slots:
93 bool getItem(QListViewItem* );
94 void doListView();
95 void FindLibrary();
96 void newList();
97 void Newlibrary();
98 void Library();
99 bool getAuthor();
100 void select_title(QListViewItem*);
101 void cancelIt();
102 void sort();
103 bool moreInfo();
104// void DownloadEmAll();
105 bool httpDownload();
106 bool setTitle();
107 void saveConfig();
108 bool download_Etext();
109 void onButtonSearch();
110 bool onButtonDownload();
111
112// bool UnzipIt( QString fileName);
113 void comboSelect(int index);
114protected slots:
115
116
117protected:
118
119 void initDialog();
120 QHBoxLayout *hbox,*hbox1,*hbox2;
121 QVBoxLayout *vbox;
122// void search_slot();
123
124};
125
126#endif // LIBRARYDIALOG_H