hi~

2011/2/1 Arun Ravindran <[email protected]>

> Hi,
>
>
>  hi~
>
> I use "context-listen Cellular.SignalStrength" to listen the contextkit,
> but I could not get the information.
> the message show from Cellular Provider is:
>                        *CellularProvider First subscriber appeared,
> connecting to ofono
>                        ProviderProvider No NetworkRegistration interface
> found *
>
> And  the code in CellularProvider.cpp (from contextkit-meego-provider src
> rpm) :
>
> *void CellularProvider::initProvider()
> {
>         qDebug() << "CellularProvider" << "First subscriber appeared,
> connecting to ofono";
>
>         **Manager
> managerProxy("org.ofono","/",QDBusConnection::systemBus());
>         **QVariantMap managerProps = managerProxy.GetProperties();
>         QList<QDBusObjectPath> paths = qdbus_cast<QList<QDBusObjectPath>
> >(managerProps["Modems"]);*
> *        QString modemPath;
>         foreach (QDBusObjectPath p, paths){
>               .........          }
>        }
>       if (!networkProps)
>       {
>           qDebug() << "ProviderProvider" << "No NetworkRegistration
> interface found";
>       }
> }
> *
> I run "context-listen Cellular.SignalStrength" and the void
> CellularProvider::initProvider() will load when the "CellularProvider First
> subscriber appeared". But the code was stopped at
>         *Manager
> managerProxy("org.ofono","/",QDBusConnection::systemBus());*
> *        **QVariantMap managerProps = managerProxy.GetProperties();
>         QList<QDBusObjectPath> paths = qdbus_cast<QList<QDBusObjectPath>
> >(managerProps["Modems"]);*
>
>
> The oFono interfaces changed some time back and there is no GetProperties()
> interface available for org.ofono.manager.
> This should be changed in the context kit. The new interface is
> GetModems().
>
>
>
Got it. but the Cellular contextkit provider source code
still use GetProperties(), does the contextkit maintainer would modify it to
fit the ofono interface??

>
> And I try to found out the defination of *Manager and* *GetProperties()*,
> but there is no such file like
>          #include "ofono_interface.h"
>          #include "manager_interface.h"
> Or other source file about the Manager and GetProperties().
>
>
>
> These headers are created while the context kit is built, please see
> http://meego.gitorious.org/meego-handset-ux/contextkit-meego/blobs/master/cellular/src/src.pro
>
>


>  anyone know where could I find the defination of *Manager and* *
> GetProperties()* used in the CellularProvicer??
>
  Or anyone know that why void CellularProvider::initProvider() fail
at *GetProperties()??
> *
> It seems some problem of the defination of  Manager and GetProperties()....
>
>
> thanks.
>
>
>
> regards
> Arun
>
>
> _______________________________________________
> MeeGo-dev mailing list
> [email protected]
> http://lists.meego.com/listinfo/meego-dev
>
>
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to