Qtopia Home - Classes - Hierachy - Annotated - Functions - Licenses - Reference

networkinterface.h

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


/**********************************************************************
** Copyright (C) 2000-2005 Trolltech AS.  All rights reserved.
**
** This file is part of the Qtopia Environment.
**
** Licensees holding a valid license agreement from Trolltech or any of its
** authorized distributors may use this file in accordance with
** the License Agreement provided with the Licensed 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.
**
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
**   information about Trolltech's Commercial License Agreements.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#ifndef NETWORKINTERFACE_H
#define NETWORKINTERFACE_H

#include <qnamespace.h>
#include <qstring.h>
#include <qvariant.h>
#include <qtopia/qcom.h>

#ifndef QT_NO_COMPONENT
// {09794290-69d5-4c42-8a53-230cf2e53c50}
// {09794290-69d5-4c42-8a53-230cf2e53c51}
# define IID_Network QUuid( 0x09794290, 0x69d5, 0x4c42, 0x8a, 0x53, 0x23, 0x0c, 0xf2, 0xe5, 0x3c, 0x50)
# define IID_Network2 QUuid( 0x09794290, 0x69d5, 0x4c42, 0x8a, 0x53, 0x23, 0x0c, 0xf2, 0xe5, 0x3c, 0x51)
#endif

class QWidget;
class Config;

struct QTOPIA_EXPORT NetworkInterface : public QUnknownInterface
{
    virtual bool doProperties( QWidget *parent, Config& ) = 0;
    virtual bool create( Config& ) = 0;
    virtual bool remove( Config& ) = 0;
    virtual QString device( Config& ) const;
    virtual QString cardType( Config& ) const;
    virtual bool isActive( Config& ) const;
    virtual bool isAvailable( Config& ) const;
    virtual bool start( Config& ) = 0;
    virtual bool start( Config&, const QString& password );
    virtual bool stop( Config& ) = 0;
    virtual bool needPassword( Config& ) const;
    virtual QWidget* addStateWidget( QWidget* parent, Config& ) const;
};

class NetworkInterfaceProperties : public QMap<QString, QVariant>
{
public:
    NetworkInterfaceProperties() {}
    NetworkInterfaceProperties( const NetworkInterfaceProperties& list )
	: QMap<QString, QVariant> ( list ) {}
    ~NetworkInterfaceProperties() {}

    void debugDump() const;
};

struct QTOPIA_EXPORT NetworkInterface2 : public NetworkInterface
{
    virtual bool setProperties( Config&, const NetworkInterfaceProperties& ) = 0;
};

#endif


Copyright © 2005 Trolltech Trademarks
Qtopia version 2.2.0