~ubuntu-branches/debian/sid/kxstitch/sid

« back to all changes in this revision

Viewing changes to kxstitch/kxstitchmimesource.h

  • Committer: Bazaar Package Importer
  • Author(s): eric pareja
  • Date: 2005-02-19 12:37:22 UTC
  • Revision ID: james.westby@ubuntu.com-20050219123722-kt3ru1nqvllietee
Tags: upstream-0.6
ImportĀ upstreamĀ versionĀ 0.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2003 by Stephen Allewell                                *
 
3
 *   stephen@mirramar.fsnet.co.uk                                          *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) any later version.                                   *
 
9
 ***************************************************************************/
 
10
 
 
11
#ifndef __KXSTITCHMIMESOURCE_H
 
12
#define __KXSTITCHMIMESOURCE_H
 
13
 
 
14
#include <qmime.h>
 
15
#include <qstrlist.h>
 
16
 
 
17
/** Derived from QMimeSource to allow cut/copy/paste within and between applications
 
18
  */
 
19
class KXStitchMimeSource : public QMimeSource
 
20
{
 
21
public:
 
22
  KXStitchMimeSource(QByteArray data);
 
23
  virtual ~KXStitchMimeSource();
 
24
 
 
25
  virtual const char* format(int n=0) const;
 
26
  virtual bool provides(const char* mimeType) const;
 
27
  virtual QByteArray encodedData(const char* mimeType) const;
 
28
 
 
29
private:
 
30
  QByteArray  m_data;
 
31
  QStrList    m_outputFormats;
 
32
};
 
33
 
 
34
#endif