Join Today
+ Reply to Thread
Results 1 to 5 of 5
  1. Default ezxamnoti.h how-to ???

    i'm writting a im client app this days, and want show some notice use AM_NOTI_Client when it received income message.

    with the sourcecode below, i can put a notice to the app manager's blinking exclamation point. but how can i active my app by click on my notice ? and connect(notiClient, ... ); will not work too , why ?

    AM_NOTI_Client *notiClient = AM_NOTI_Wvimps::instance();
    connect(notiClient, SIGNAL( signalReceiveData(int, QString const&, QString const&, QString const&) ), SLOT( receiveNotify(int, QString const&, QString const&, QString const&) );
    notiClient->addData( 0, "UMsg_Send_Msg_Notifi.g", "TEST", "" );

  2. #2
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default Re: ezxamnoti.h how-to ???

    1. Only raise your app:
    noti = AM_NOTI_Task::instance();
    noti->addData();
    2. You need to do something:
    noti = AM_NOTI_Wvimps::instance();
    QCopChannel *qcop = noti->m_qcc_24;
    connect(qcop, SIGNAL(received()), this, SLOT(received()));
    noti->addData();

    Sorry, can not write full example right now.
    eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6

  3. #3
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default Re: ezxamnoti.h how-to ???

    Sorry, only methode 2 work properly.

    void MediaPlayer::received(const QCString&, const QByteArray&) {
    ZApplication *app = (ZApplication*)qApp;
    app->raiseAppWindows();
    // do something
    noti->deleteData(0);
    }
    eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6

  4. Default Re: ezxamnoti.h how-to ???

    thank you blackhawk, thank you very much

  5. #5

    Default

    hello friends
    i got one source that have a call to the AM_NOTI_Wvimps function, so i don't have the ezxamnoti.h in my SDK for a1200... So i got ezxamnoti.h from samr7 package and compiled, so in link time i got some "undefined reference to AM_NOTI_Wvimps::instance()'"

    then i do one "arm-linux-objdump.exe -T -C /opt/a1200/lib/ezx/lib/* | grep AM_NOTI" and got nothing...

    anyone know what lib i need to use this?

    thanks
    Last edited by dimitriz; 05-02-2008 at 10:53 PM.


 
+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1