diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kopete/libkopete/kopetemimesourcefactory.h | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/kopetemimesourcefactory.h')
-rw-r--r-- | kopete/libkopete/kopetemimesourcefactory.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/kopete/libkopete/kopetemimesourcefactory.h b/kopete/libkopete/kopetemimesourcefactory.h new file mode 100644 index 00000000..76c2f188 --- /dev/null +++ b/kopete/libkopete/kopetemimesourcefactory.h @@ -0,0 +1,55 @@ +/* + kopetemimesourcefactory.h - Kopete mime source factory + + Copyright (c) 2004 by Richard Smith <[email protected]> + + Kopete (c) 2004 by the Kopete developers <[email protected]> + + ************************************************************************* + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Lesser General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + ************************************************************************* +*/ + +#ifndef KOPETEMIMESOURCEFACTORY_H +#define KOPETEMIMESOURCEFACTORY_H + +#include <qmime.h> + +#include "kopete_export.h" + +namespace Kopete +{ + +/** + * @brief A mime source factory for providing kopete's various icons for labels and tooltips + * + * The following 'protocols' are supported, and provide appropriate icons for + * various situations: + * kopete-contact-icon:\<protocolId\>:\<accountId\>:\<contactId\> + * kopete-account-icon:\<protocolId\>:\<accountId\> + * kopete-metacontact-icon:\<metaContactId\> + * Note that the various id strings should be URL-encoded (with, for instance, + * KURL::encode_string) if they might contain colons. + */ +class KOPETE_EXPORT MimeSourceFactory : public QMimeSourceFactory +{ +public: + MimeSourceFactory(); + ~MimeSourceFactory(); + + const QMimeSource *data( const QString &abs_name ) const; + +private: + class Private; + Private *d; +}; + +} // Kopete + +#endif +// vim: set noet ts=4 sts=4 sw=4: |