Qtopia Home - Classes - Annotated - Functions - Qt Embedded

importexport.h

This is the verbatim text of the importexport.h include file. It is provided only for illustration; the copyright remains with Trolltech.


/**********************************************************************
** Copyright (C) 2000-2002 Trolltech AS.  All rights reserved.
**
** This file is part of the Qtopia Environment.
**
** Licensees holding valid Qtopia Developer license may use this
** file in accordance with the Qtopia Developer License Agreement
** provided with the Software.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
** THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
** PURPOSE.
**
** email sales@trolltech.com for information about Qtopia License
** Agreements.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/

#ifndef __importexportinterface_h__
#define __importexportinterface_h__

#include <private/qcom_p.h>
#include <qstring.h>
#include <qvaluelist.h>
#include <qstringlist.h>

namespace MergeML {
    class Record;
    class Change;
}

// {7ACBDCEC-7E32-4A9C-A780-98E3FE0A99C9}
#ifndef IID_ImportInterfacePlugin
#define IID_ImportInterfacePlugin QUuid( 0x7acbdcec, 0x7e32, 0x4a9c, 0xa7, 0x80, 0x98, 0xe3, 0xfe, 0x0a, 0x99, 0xc9)
#endif

struct CenterInterface;
class SettingsWidget;
class QWidget;
struct ImportInterface : public QComponentInformationInterface
{
    /** Return the imported data in the form of records in the
     *  parameter result.  Return TRUE if import succeeded or
     *  FALSE if did not succeed or was not done.
     *
     *  The method name data() was used to stay consistent
     *  with MergeInterface.
     */
    virtual bool data( CenterInterface *center,
		       const QString &dataSet,
		       QValueList<MergeML::Record> &result ) = 0;

    virtual QString externalApplicationName() const = 0;
    virtual QString palmtopApplicationName() const = 0;

    virtual QStringList dataSets() const = 0;
    virtual SettingsWidget* importSettings( QWidget* parent ) = 0;
};

// {7ACBDCEC-7E32-4A9C-A780-98E3FE0A99C9}
#ifndef IID_ExportInterfacePlugin
#define IID_ExportInterfacePlugin QUuid( 0x7acbdcec, 0x7e32, 0x4a9c, 0xa7, 0x80, 0x98, 0xe3, 0xfe, 0x0a, 0x99, 0xc9)
#endif

struct ExportInterface : public QComponentInformationInterface
{
    /** Return FALSE if the export was not done
     */
    virtual bool exportData( CenterInterface *center,
			     const QValueList<MergeML::Record> &data,
			     const QString &dataSet ) = 0;

    virtual QString externalApplicationName() const = 0;
    virtual QString palmtopApplicationName() const = 0;	

    virtual QStringList dataSets() const = 0;
    virtual SettingsWidget* exportSettings( QWidget* parent ) = 0;
};

#endif


Copyright © 2001-2004 Trolltech Trademarks
Qtopia version 2.0.1