summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-gutenbrowser/LibraryDialog.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-gutenbrowser/LibraryDialog.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/LibraryDialog.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/noncore/apps/opie-gutenbrowser/LibraryDialog.h b/noncore/apps/opie-gutenbrowser/LibraryDialog.h
index 8d6352f..95226b2 100644
--- a/noncore/apps/opie-gutenbrowser/LibraryDialog.h
+++ b/noncore/apps/opie-gutenbrowser/LibraryDialog.h
@@ -27,23 +27,32 @@
#include <qregexp.h>
#include <qstring.h>
#include <qtextstream.h>
#include <qlabel.h>
#include <stdlib.h>
#include <qtabwidget.h>
+#include <qvaluelist.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QListView;
class QListViewItem;
class QPushButton;
//class QTabWidget;
class QWidget;
//class Gutenbrowser;
+typedef struct {
+ QString title;
+ QString author;
+ QString year;
+ QString file;
+} etext;
+
+
class LibraryDialog : public QDialog {
Q_OBJECT
public:
LibraryDialog( QWidget* parent = 0, const char* name = 0 , bool modal = TRUE, WFlags fl = 0 );
~LibraryDialog();
@@ -96,13 +105,13 @@ public slots:
void newList();
void Newlibrary();
void Library();
bool getAuthor();
void select_title(QListViewItem*);
void cancelIt();
- void sort();
+ void sortLists(int);
bool moreInfo();
// void DownloadEmAll();
bool httpDownload();
bool setTitle();
void saveConfig();
bool download_Etext();
@@ -115,19 +124,23 @@ public slots:
void comboSelect(int index);
protected slots:
protected:
+ QValueList<etext> etextLibrary;
+
void initDialog();
QHBoxLayout *hbox,*hbox1,*hbox2;
QVBoxLayout *vbox;
// void search_slot();
private:
void addItems();
void clearItems();
void cleanStrings();
bool getEtext(const QStringList &);
+private slots:
+ void authBoxClicked();
};
#endif // LIBRARYDIALOG_H