CNetworkWriteArchive.h
Go to the documentation of this file.
1 #ifndef iqt_CNetworkWriteArchive_included
2 #define iqt_CNetworkWriteArchive_included
3 
4 
5 // Qt includes
6 #include <QtCore/QObject>
7 #include <QtNetwork/QTcpSocket>
8 
9 // ACF includes
11 #include <iqt/iqt.h>
12 
13 
14 namespace iqt
15 {
16 
17 
24  public QObject,
26 {
27  Q_OBJECT
28 
29 public:
31 
43  const QString& hostAddress,
44  int port,
45  const QString& userName = QString(),
46  const QString& password = QString(),
47  const iser::IVersionInfo* versionInfoPtr = NULL,
48  bool serializeHeader = true);
49 
51 
52  virtual bool Flush();
53 
54  // reimplemented (iser::IArchive)
55  virtual bool ProcessData(void* dataPtr, int size);
56 
57 private Q_SLOTS:
58  void OnAuthentificationtRequired(const QNetworkProxy& proxy, QAuthenticator* authenticator) const;
59 
60 private:
61  QTcpSocket m_socket;
62  QString m_userName;
63  QString m_password;
64 };
65 
66 
67 } // namespace iqt
68 
69 
70 #endif // !iqt_CNetworkWriteArchive_included
71 
72 
A write archive working over network connection.
CNetworkWriteArchive(const QString &hostAddress, int port, const QString &userName=QString(), const QString &password=QString(), const iser::IVersionInfo *versionInfoPtr=NULL, bool serializeHeader=true)
Constructor.
Provides access to version information.
Definition: IVersionInfo.h:22
iser::CMemoryWriteArchive BaseClass
#define NULL
Definition: istd.h:64
Implementation of archive using memory buffer to store the persistent objects.
virtual bool ProcessData(void *dataPtr, int size)
Process binary data block.

© 2007-2017 Witold Gantzke and Kirill Lepskiy