StartTransfer Event

Fired when a file transfer begins.

Syntax

class XMPPStartTransferEventParams {
public:
  int Direction();
  const QString &FileId();
  const QString &User();
  const QString &Domain();
  const QString &Resource();
  const QString &Filename();
  void SetFilename(const QString &qsFilename);
  const QString &Datetime();
  qint64 Size();
  bool Accept();
  void SetAccept(bool bAccept);
  int EventRetVal();
  void SetEventRetVal(int iRetVal);
};
// To handle, connect one or more slots to this signal. void StartTransfer(XMPPStartTransferEventParams *e);
// Or, subclass XMPP and override this emitter function. virtual int FireStartTransfer(XMPPStartTransferEventParams *e) {...}

Remarks

When a file is received, the XMPP component will parse the sender's Jabber ID into the User, Domain, and Resource fields. The FileId and Filename parameters identify the current transfer. Within this event you may override the Filename by setting the Filename parameter. At this time you may also set LocalDirectory if it is not already set.

When a sending a file, the XMPP component will parse the receiver's Jabber ID into the User, Domain, and Resource fields.

The Direction parameter shows whether the client (0) or the server (1) is sending the data.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IoT 2020 Qt Edition - Version 20.0 [Build 8265]