×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    36

    Incoming and outgoing call in Qt

    Hi All,
    I'm trying to initiate call in Qt useing http://wiki.forum.nokia.com/index.ph...one_call_in_Qt and http://wiki.forum.nokia.com/index.ph...bile_Extension
    but not compiled and throw this error XQTelephony: No such file or directory.

    how to solve it.

    thanks in advance.

  2. #2
    Nokia Developer Moderator
    Join Date
    May 2007
    Posts
    468

    Re: Incoming and outgoing call in Qt

    Hi,
    you're using the deprecated Mobile Extensions that have been replaced with Mobility APIs. Unfortunately there's still no telephony API in Mobility. You might want to try the following instructions https://projects.forum.nokia.com/MobExtConfig to add the mobile extensions as part of your project (instead of building them against the extension libraries that no longer work with newer versions of Qt.

    Cheers,
    Jack

  3. #3
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    95

    Re: Incoming and outgoing call in Qt

    You can make this directly in Symbian C++.

    If you need, i'm developing an application controlling outgoing call.

    Try this and remember to add this in .pro file:

    # make call s60
    LIBS += -letel3rdparty

    TARGET.CAPABILITY += NetworkServices




    #ifndef S60MAKECALL_H
    #define S60MAKECALL_H

    #include <QString>

    #ifdef Q_WS_S60
    #include <Etel3rdParty.h>
    // link to etel3rdparty.lib
    #endif

    #ifdef Q_WS_S60
    class CCallDialer : public CActive
    {
    public:
    static CCallDialer* NewL( const TDesC& aNumber);
    static CCallDialer* NewLC( const TDesC& aNumber);
    ~CCallDialer();

    protected:
    CCallDialer();
    void ConstructL(const TDesC& aNumber);

    private:
    void RunL();
    void DoCancel();

    private:
    CTelephony* iTelephony;
    CTelephony::TCallId iCallId;
    CTelephony::TCallParamsV1 iCallParams;
    CTelephony::TCallParamsV1Pckg iCallParamsPckg;
    };
    #endif

    class S60MakeCall
    {
    public:
    S60MakeCall();
    ~S60MakeCall();
    void MakeCall(QString numeroTelefono);

    #ifdef Q_WS_S60
    CCallDialer *callDialer;
    #endif
    };




    #endif // S60MAKECALL_H







    #include "S60/s60makecall.h"



    S60MakeCall::S60MakeCall()
    {
    #ifdef Q_WS_S60
    this->callDialer = NULL
    #endif
    ;
    }

    S60MakeCall::~S60MakeCall()
    {
    #ifdef Q_WS_S60
    if (this->callDialer) delete this->callDialer;
    this->callDialer = NULL;
    #endif

    }

    void S60MakeCall::MakeCall(QString numeroTelefono)
    {
    #ifdef Q_WS_S60
    TBuf<48> dNumeroTelefono(numeroTelefono.utf16());

    this->callDialer = CCallDialer::NewL(dNumeroTelefono);
    #endif
    }


    #ifdef Q_WS_S60
    CCallDialer* CCallDialer::NewL(const TDesC& aNumber)
    {
    CCallDialer* self = CCallDialer::NewLC(aNumber);
    CleanupStack::Pop(self);
    return self;
    }

    CCallDialer* CCallDialer::NewLC(const TDesC& aNumber)
    {
    CCallDialer* self = new (ELeave) CCallDialer();
    CleanupStack::PushL(self);
    self->ConstructL(aNumber);
    return self;
    }


    CCallDialer::~CCallDialer()
    {
    Cancel();
    delete iTelephony;
    }

    void CCallDialer::ConstructL(const TDesC& aNumber)
    {
    iTelephony = CTelephony::NewL();
    CTelephony::TTelNumber telNumber(aNumber);

    iCallParams.iIdRestrict = CTelephony::ESendMyId;

    iTelephony->DialNewCall(iStatus, iCallParamsPckg, telNumber, iCallId);
    SetActive();
    }

    CCallDialer::CCallDialer()
    : CActive(EPriorityNormal), iCallParamsPckg(iCallParams)
    {
    CActiveScheduler::Add(this);
    }

    void CCallDialer::RunL()
    {
    //iObserver.CallDialedL(iStatus.Int());
    }

    void CCallDialer:oCancel()
    {
    iTelephony->CancelAsync(CTelephony::EDialNewCallCancel);
    }
    #endif
    Last edited by negus; 2011-01-25 at 16:49.

Similar Threads

  1. Replies: 3
    Last Post: 2010-09-23, 11:02
  2. Nokia 5800 problems wz incoming and outgoing call display.
    By tigerbalm in forum General Development Questions
    Replies: 1
    Last Post: 2009-01-08, 05:11
  3. Replies: 2
    Last Post: 2008-06-08, 11:05
  4. Replies: 3
    Last Post: 2007-11-16, 07:14
  5. 6600 Incoming and Outgoing Call Problem
    By dd_aclan in forum General Development Questions
    Replies: 3
    Last Post: 2005-09-02, 21:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •