BiblioteQ: Source/biblioteq_book.h Source File

BiblioteQ

biblioteq_book.h
1 #ifndef _BIBLIOTEQ_BOOK_H_
2 #define _BIBLIOTEQ_BOOK_H_
3
4 #include "biblioteq_item.h"
5 #include "biblioteq_marc.h"
6 #include "ui_biblioteq_bookinfo.h"
7 #include "ui_biblioteq_passwordPrompt.h"
8
9 #include <QBuffer>
10 #include <QNetworkReply>
11 #include <QPointer>
12
13 class biblioteq_generic_thread;
14
15 class biblioteq_book: public QMainWindow, public biblioteq_item
16 {
17 Q_OBJECT
18
19 public:
20 biblioteq_book(biblioteq *parentArg,
21 const QString &oidArg,
22 const int rowArg);
23 ~biblioteq_book();
24 void duplicate(const QString &p_oid, const int state);
25 void insert(void);
26 void modify(const int state);
27 void search(const QString &field = "", const QString &value = "");
28
29 void setPublicationDateFormat(const QString &dateFormat)
30 {
31 id.publication_date->setDisplayFormat(dateFormat);
32 }
33
34 void updateWindow(const int);
35
36 private:
37 enum Columns
38 {
39 COMPRESSED_SIZE = 2,
40 DESCRIPTION = 3,
41 DIGEST = 1,
42 FILE = 0,
43 MYOID = 4
44 };
45
46 QBuffer m_imageBuffer;
47 QByteArray m_openLibraryResults;
48 QByteArray m_sruResults;
49 QDialog *m_proxyDialog;
50 QNetworkAccessManager *m_imageManager;
51 QNetworkAccessManager *m_openLibraryManager;
52 QNetworkAccessManager *m_sruManager;
53 QPalette m_te_orig_pal;
54 QPalette m_white_pal;
55 QPointer<biblioteq_generic_thread> m_thread;
56 QPointer<biblioteq_item_working_dialog> m_openLibraryWorking;
57 QPointer<biblioteq_item_working_dialog> m_sruWorking;
58 QString m_cb_orig_ss;
59 QString m_dt_orig_ss;
60 QString m_engWindowTitle;
61 Ui_informationDialog id;
62 Ui_passwordDialog ui_p;
63 bool m_duplicate;
64 biblioteq_item_working_dialog *createImageDownloadDialog
65 (const QString &downloadType);
66 void changeEvent(QEvent *event);
67 void closeEvent(QCloseEvent *event);
68 void createFile(const QByteArray &digest,
69 const QByteArray &bytes,
70 const QString &fileName) const;
71 void createOpenLibraryDialog(void);
72 void createSRUDialog(void);
73 void populateAfterOpenLibrary(void);
74 void populateAfterSRU(const QString &text);
75 void populateAfterZ3950(const QString &text,
76 const biblioteq_marc::RECORD_SYNTAX recordSyntax);
77 void populateFiles(void);
78
79 private slots:
80 void downloadFinished(void);
81 void openLibraryDownloadFinished(void);
82 void setGlobalFonts(const QFont &font);
83 void slotAttachFiles(void);
84 void slotCancel(void);
85 void slotCancelImageDownload(void);
86 void slotConvertISBN10to13(void);
87 void slotConvertISBN13to10(void);
88 void slotDataTransferProgress(qint64 bytesread, qint64 totalbytes);
89 void slotDeleteFiles(void);
90 void slotDownloadFinished(void);
91 void slotDownloadImage(void);
92 void slotExportFiles(void);
93 void slotFilesDoubleClicked(QTableWidgetItem *item);
94 void slotGo(void);
95 void slotOpenLibraryCanceled(void);
96 void slotOpenLibraryDownloadFinished(bool error);
97 void slotOpenLibraryDownloadFinished(void);
98 void slotOpenLibraryError(QNetworkReply::NetworkError error);
99 void slotOpenLibraryQuery(void);
100 void slotOpenLibraryQueryError(const QString &text);
101 void slotOpenLibraryReadyRead(void);
102 void slotOpenLibrarySslErrors(const QList<QSslError> &list);
103 void slotParseMarcTags(void);
104 void slotPopulateCopiesEditor(void);
105 void slotPrint(void);
106 void slotPrintAuthorTitleDewey(void);
107 void slotPrintCallDewey(void);
108 void slotProxyAuthenticationRequired(const QNetworkProxy &proxy,
109 QAuthenticator *authenticator);
110 void slotPublicationDateEnabled(bool state);
111 void slotReadyRead(void);
112 void slotReset(void);
113 void slotSRUCanceled(void);
114 void slotSRUDownloadFinished(bool error);
115 void slotSRUDownloadFinished(void);
116 void slotSRUError(QNetworkReply::NetworkError error);
117 void slotSRUQuery(void);
118 void slotSRUQueryError(const QString &text);
119 void slotSRUReadyRead(void);
120 void slotSRUSslErrors(const QList<QSslError> &list);
121 void slotSelectImage(void);
122 void slotShowPDF(void);
123 void slotShowUsers(void);
124 void slotZ3950Query(void);
125 void sruDownloadFinished(void);
126
127 signals:
128 void openLibraryQueryError(const QString &text);
129 void sruQueryError(const QString &text);
130 };
131
132 #endif
biblioteq_item_working_dialog
Definition: biblioteq_item.h:13
biblioteq_book
Definition: biblioteq_book.h:15
biblioteq_generic_thread
Definition: biblioteq_generic_thread.h:9
biblioteq
Definition: biblioteq.h:179
biblioteq_item
Definition: biblioteq_item.h:42