The QXmppUtils class contains static utility functions.  
 More...
#include <QXmppUtils.h>
Detailed Description
The QXmppUtils class contains static utility functions. 
Member Function Documentation
  
  | 
        
          | QDateTime QXmppUtils::datetimeFromString | ( | const QString & | str | ) |  |  | static | 
 
 
  
  | 
        
          | QString QXmppUtils::datetimeToString | ( | const QDateTime & | dt | ) |  |  | static | 
 
 
  
  | 
        
          | QByteArray QXmppUtils::generateRandomBytes | ( | int | length | ) |  |  | static | 
 
Returns a random byte array of the specified size.
- Parameters
- 
  
  
 
 
  
  | 
        
          | int QXmppUtils::generateRandomInteger | ( | int | N | ) |  |  | static | 
 
Generates a random integer x between 0 and N-1.
- Parameters
- 
  
  
 
 
  
  | 
        
          | QString QXmppUtils::generateStanzaHash | ( | int | length = 32 | ) |  |  | static | 
 
Returns a random alphanumerical string of the specified size.
- Parameters
- 
  
  
 
 
  
  | 
        
          | int QXmppUtils::timezoneOffsetFromString | ( | const QString & | str | ) |  |  | static | 
 
Parses a timezone offset (in seconds) from a string according to XEP-0082: XMPP Date and Time Profiles. 
 
 
  
  | 
        
          | QString QXmppUtils::timezoneOffsetToString | ( | int | secs | ) |  |  | static | 
 
Serializes a timezone offset (in seconds) to a string according to XEP-0082: XMPP Date and Time Profiles. 
 
 
The documentation for this class was generated from the following files: