Logo Search packages:      
Sourcecode: kmess version File versions  Download package

MsnObject Class Reference

Data class for the msnobject tag. More...

#include <msnobject.h>

List of all members.

Public Types

enum  MsnObjectType {
  INVALID = 0, EMOTICON = 2, DISPLAYPIC = 3, BACKGROUND = 5,
  DELUXE_DISPLAYPIC = 7, WINK = 8, VOICECLIP = 11, ROAMING_OBJECT = 13
}

Public Member Functions

const QString getContentHash () const
const QString & getCreator () const
const QString getDataHash () const
const QString & getFriendly () const
const QString & getLocation () const
int getSize () const
MsnObjectType getType () const
bool hasChanged (const QString &newObj) const
bool isValid () const
 MsnObject (const QString &object)
 MsnObject (const MsnObject &other)
 MsnObject (const QString &creator, const QString &location, const QString &friendly, MsnObjectType type, const QByteArray &fileData, const QByteArray &stamp=QByteArray())
const QString objectString () const
bool verifyFile (const QString &fileName) const
bool verifyObjectHash () const

Static Public Member Functions

static QString getAttribute (const QString &attribute, const QString &object)
 Parse an attribute from the object string.

Private Member Functions

const QByteArray generateDataHash (const QByteArray &fileData) const
 Generate the base64-encoded sha1 hash for the file data.
const QByteArray generateObjectHash () const
 Generate the base64-encoded sha1 hash for this object.
void loadObject (const QString &object)
 Use an MSN object descriptor from the server to load data.

Private Attributes

QString creator_
QString friendly_
QString location_
QString original_
QByteArray sha1c_
QByteArray sha1d_
int size_
QByteArray stamp_
MsnObjectType type_

Detailed Description

Data class for the msnobject tag.

The MSN Object type is used by MSN Messenger to share meta-data about contact pictures, emoticons and backgrounds.

Author:
Mike K. Bennett

Definition at line 34 of file msnobject.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index