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

smsrequest.h

This is the verbatim text of the smsrequest.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 SMS_REQUEST_H
#define SMS_REQUEST_H

#include <qobject.h>
#include <qvaluelist.h>

#include <qtopia/quuid.h>

class SMSMessage;
class CBSMessage;
class PhoneLine;
class SMSRequestPrivate;


class SMSRequest : public QObject
{
    friend class PhoneLine;
    Q_OBJECT
private:
    SMSRequest( SMSRequestPrivate *, QObject *parent = 0 );

public:
    ~SMSRequest();

    enum Disposition
    {
	Send,
	SendAndStore,
	Store
    };

    QString send( const SMSMessage& m, Disposition disposition = Send, QString id = QString::null );

    void check();

    void firstMessage();
    void nextMessage();

    void deleteMessage( const QString& id );

signals:
    void finished( const PhoneLine& line, const QString& id, bool success );
    void messageCount( const PhoneLine& line, int total );
    void fetched( const PhoneLine& line, const QString& id, const SMSMessage& m );
    void cellBroadcast( const PhoneLine& line, const CBSMessage& m );

private:
    // disable copy constructor and operator=
    SMSRequest& operator=(const SMSRequest &);
    SMSRequest(const SMSRequest &);

private:
    SMSRequestPrivate *d;
};

#endif


Copyright © 2005 Trolltech Trademarks
Qtopia version 2.2.0