networking-status.h
QObject
QScopedPointer
QVector
networking-status.cpp
networking-status.h
QObject
QScopedPointer
QVector
networking-status.cpp
networking-status.h
lomiri::connectivity::NetworkingStatus
lomiri
lomiri::connectivity

    /*
    *Copyright©2014CanonicalLtd.
    *
    *Thisprogramisfreesoftware:youcanredistributeitand/ormodifyit
    *underthetermsoftheGNULesserGeneralPublicLicenseversion3,
    *aspublishedbytheFreeSoftwareFoundation.
    *
    *Thisprogramisdistributedinthehopethatitwillbeuseful,
    *butWITHOUTANYWARRANTY;withouteventheimpliedwarrantyof
    *MERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.Seethe
    *GNULesserGeneralPublicLicenseformoredetails.
    *
    *YoushouldhavereceivedacopyoftheGNULesserGeneralPublicLicense
    *alongwiththisprogram.Ifnot,see<http://www.gnu.org/licenses/>.
    *
    *Authors:
    *AnttiKaijanmäki<antti.kaijanmaki@canonical.com>
    */

    #ifndefCONNECTIVITY_NETWORKING_STATUS_H
    #defineCONNECTIVITY_NETWORKING_STATUS_H

    #include<QObject>
    #include<QScopedPointer>
    #include<QVector>

    namespacelomiri{
    namespaceconnectivity{

    classQ_DECL_DEPRECATEDQ_DECL_EXPORTNetworkingStatus:publicQObject
    {
    Q_OBJECT
    Q_DISABLE_COPY(NetworkingStatus)

    Q_ENUMS(Limitations)
    Q_ENUMS(Status)

    Q_PROPERTY(QVector<Limitations>limitations
    READlimitations
    NOTIFYlimitationsChanged)

    Q_PROPERTY(lomiri::connectivity::NetworkingStatus::Statusstatus
    READstatus
    NOTIFYstatusChanged)

    public:
    explicitNetworkingStatus(QObject*parent=0);
    virtual~NetworkingStatus();

    enumLimitations{
    Bandwidth
    };

    enumStatus{
    Offline,
    Connecting,
    Online
    };

    Q_DECL_DEPRECATED
    QVector<Limitations>limitations()const;

    Q_DECL_DEPRECATED
    Statusstatus()const;

    Q_SIGNALS:
    Q_DECL_DEPRECATED
    voidlimitationsChanged();

    Q_DECL_DEPRECATED
    voidstatusChanged(Statusvalue);

    private:
    classPrivate;
    QScopedPointer<Private>d;
    };

    }
    }

    Q_DECLARE_METATYPE(lomiri::connectivity::NetworkingStatus::Limitations)
    Q_DECLARE_METATYPE(QVector<lomiri::connectivity::NetworkingStatus::Limitations>)
    Q_DECLARE_METATYPE(lomiri::connectivity::NetworkingStatus::Status)

    #endif//CONNECTIVITY_NETWORKING_STATUS_H