Join Today
+ Reply to Thread
Results 1 to 1 of 1
  1. Default get keypad event after keypad locked

    found a new api in ezxappbase-xscale-r.so
    QCString GetHardKeyChannelName();
    it return a const string "/hardkey/bc"

    now, we can get keypad event when keypad is locked .

    when ZMainWidget create:
    {
    ....
    QCString HardKeyChannelName = GetHardKeyChannelName();
    qWarning("HardKeyChannel: %s\n", (const char *)HardKeyChannelName);

    QCopChannel * cch;
    // get vol+ vol- key press event
    cch = new QCopChannel(QCString("/EZX/Volume"), this);
    connect(cch, SIGNAL(received(const QCString &, const QByteArray &)), SLOT ( myhkc(const QCString &, const QByteArray &)) );
    // get HOME LOCK key press event
    cch = new QCopChannel(HardKeyChannelName, this);
    connect(cch, SIGNAL(received(const QCString &, const QByteArray &)), SLOT ( myhkc(const QCString &, const QByteArray &)) );
    ....
    }

    // and the public slots of your MainWidget receive events

    void MainWidget::myhkc( const QCString & msg, const QByteArray & /*data*/ )
    {
    qWarning("HardKey event: %s\n", (const char *)msg);
    }


    now , we can got RKeyPress、LKeyPress、HOME、FLIP events when keypad is locked like FM Radio and Realplayer.
    Last edited by oopsware; 04-17-2008 at 09:12 AM.


 
+ Reply to Thread

Similar Threads

  1. about keypad led !!!!!
    By mehditop in forum E680i General Chat
    Replies: 5
    Last Post: 07-29-2008, 12:54 AM
  2. KeyPad LED
    By ask2meet in forum A780 General Chat
    Replies: 2
    Last Post: 08-30-2006, 01:22 AM
  3. KeyPad Flashing
    By Lexus376 in forum A780 General Chat
    Replies: 2
    Last Post: 06-05-2006, 01:18 PM
  4. Keypad backlight
    By anonymizer in forum A780 General Chat
    Replies: 8
    Last Post: 05-17-2006, 11:20 AM
  5. Internationalization - keypad
    By i9i9i9 in forum Development
    Replies: 3
    Last Post: 01-31-2006, 03:36 PM

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