BiblioteQ: Source/biblioteq_magazine.h Source File

BiblioteQ

biblioteq_magazine.h
1 #ifndef _BIBLIOTEQ_MAGAZINE_H_
2 #define _BIBLIOTEQ_MAGAZINE_H_
3
4 #include "biblioteq_item.h"
5 #include "ui_biblioteq_maginfo.h"
6 #include "ui_biblioteq_passwordPrompt.h"
7
8 #include <QNetworkReply>
9 #include <QPointer>
10
11 class biblioteq_generic_thread;
12
13 class biblioteq_magazine: public QMainWindow, public biblioteq_item
14 {
15 Q_OBJECT
16
17 public:
18 biblioteq_magazine(biblioteq *parentArg,
19 const QString &oidArg,
20 const int rowArg,
21 const QString &subTypeArg);
22 virtual ~biblioteq_magazine();
23 Ui_magDialog dialog(void) const;
24 void duplicate(const QString &p_oid, const int state);
25 void insert(void);
26 void modify(const int);
27 void populateDisplayAfterSRU(const QByteArray &data);
28 void populateDisplayAfterZ3950(const QStringList &list,
29 const QString &recordSyntax);
30
31 void setPublicationDateFormat(const QString &dateFormat)
32 {
33 ma.publication_date->setDisplayFormat(dateFormat);
34 }
35
36 void search(const QString &field = "", const QString &value = "");
37 void updateWindow(const int state);
38
39 protected:
40 enum Columns
41 {
42 COMPRESSED_SIZE = 2,
43 DESCRIPTION = 3,
44 DIGEST = 1,
45 FILE = 0,
46 MYOID = 4
47 };
48
49 QByteArray m_sruResults;
50 QDialog *m_proxyDialog;
51 QNetworkAccessManager *m_sruManager;
52 QPalette m_cb_orig_pal;
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_sruWorking;
57 QString m_dt_orig_ss;
58 QString m_engWindowTitle;
59 QString m_subType;
60 Ui_magDialog ma;
61 Ui_passwordDialog ui_p;
62 bool m_duplicate;
63 void changeEvent(QEvent *event);
64 void closeEvent(QCloseEvent *event);
65 void createFile(const QByteArray &digest,
66 const QByteArray &bytes,
67 const QString &fileName) const;
68 void createSRUDialog(void);
69 void populateFiles(void);
70
71 protected slots:
72 void setGlobalFonts(const QFont &font);
73 void slotAttachFiles(void);
74 void slotCancel(void);
75 void slotDeleteFiles(void);
76 void slotExportFiles(void);
77 void slotFilesDoubleClicked(QTableWidgetItem *item);
78 void slotGo(void);
79 void slotParseMarcTags(void);
80 void slotPopulateCopiesEditor(void);
81 void slotPrint(void);
82 void slotProxyAuthenticationRequired(const QNetworkProxy &proxy,
83 QAuthenticator *authenticator);
84 void slotPublicationDateEnabled(bool state);
85 void slotReset(void);
86 void slotSRUCanceled(void);
87 void slotSRUDownloadFinished(bool error);
88 void slotSRUDownloadFinished(void);
89 void slotSRUError(QNetworkReply::NetworkError error);
90 void slotSRUQuery(void);
91 void slotSRUQueryError(const QString &text);
92 void slotSRUReadyRead(void);
93 void slotSRUSslErrors(const QList<QSslError> &list);
94 void slotSelectImage(void);
95 void slotShowPDF(void);
96 void slotShowUsers(void);
97 void slotZ3950Query(void);
98 void sruDownloadFinished(void);
99
100 signals:
101 void sruQueryError(const QString &text);
102 };
103
104 class biblioteq_journal: public biblioteq_magazine
105 {
106 Q_OBJECT
107
108 public:
109 biblioteq_journal(biblioteq *parentArg,
110 const QString &oidArg,
111 const int rowArg);
112 ~biblioteq_journal();
113 void changeEvent(QEvent *event);
114 void closeEvent(QCloseEvent *event);
115
116 private slots:
117 void slotCancel(void);
118 };
119
120 #endif
biblioteq_journal
Definition: biblioteq_magazine.h:104
biblioteq_magazine
Definition: biblioteq_magazine.h:13
biblioteq_generic_thread
Definition: biblioteq_generic_thread.h:9
biblioteq
Definition: biblioteq.h:179
biblioteq_item
Definition: biblioteq_item.h:42