Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor Mikhail617's Avatar
    Join Date
    Feb 2010
    Posts
    79
    Hi All,

    I need to add functionality to automatically dial the first entry in the phonebook. I searched around a bit and found AT-CPBR command. Is that the only documented method for accomplishing this? Are there any API alternatives to the AT command approach?

    Thanks.

  2. #2
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    or you can use Symbian.C++ APIs to read 1st contact in PhoneBook then dial the number

  3. #3
    Regular Contributor Mikhail617's Avatar
    Join Date
    Feb 2010
    Posts
    79
    Quote Originally Posted by skumar_rao View Post
    or you can use Symbian.C++ APIs to read 1st contact in PhoneBook then dial the number
    Thanks! That is what I would rather do. I'm having trouble finding the appropriate Symbian C++ API to read 1st contact. Can you post a link to an article or tell me what to look for in the symbian/sdk docs?

  4. #4
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    have you checked CContactDatabase in wiki and SDK

  5. #5
    Regular Contributor Mikhail617's Avatar
    Join Date
    Feb 2010
    Posts
    79
    Quote Originally Posted by skumar_rao View Post
    have you checked CContactDatabase in wiki and SDK
    There isn't much but I found article on Wiki "Getting contact info from default database" and it seems to be a good place to start. My application is self-signed and I'm not clear whether these functions would require 'Read/WriteDeviceData' in addition to 'Read/WriteUserData' capabilities?

    I also found the CPbkSingleItemFetchDlg class which also seems to do the same thing but this one has even less info to go on.

    Would be nice to find some comprehensible code examples...

  6. #6
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    CPbkSingleItemFetchDlg shows a dialog of all contacts to select one . that might not help you.

    do note that AT commands required much more capability then reading a contact from Phonebook.

  7. #7
    Regular Contributor Mikhail617's Avatar
    Join Date
    Feb 2010
    Posts
    79
    Quote Originally Posted by skumar_rao View Post
    CPbkSingleItemFetchDlg shows a dialog of all contacts to select one . that might not help you.

    do note that AT commands required much more capability then reading a contact from Phonebook.
    Yes, I read earlier today that sending AT commands requires NetworkControl capability so I am no longer considering that option.

    Have you come across any good code examples for using CContactsDatabase?

    Thanks.

  8. #8
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    is there any problem wiki example http://wiki.forum.nokia.com/index.ph...fault_database

  9. #9
    Regular Contributor Mikhail617's Avatar
    Join Date
    Feb 2010
    Posts
    79
    Quote Originally Posted by skumar_rao View Post
    As a beginner, I find it somewhat confusing. One questions that comes to mind right away:

    1) Do I need to add anything to my header file to implement this or is everything that I need defined in cntdb.h and cntitem.h and I can just 'copy and paste' the code into my cpp file?

  10. #10
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    it will depend you coding style and program logic.

  11. #11
    Regular Contributor Mikhail617's Avatar
    Join Date
    Feb 2010
    Posts
    79
    Quote Originally Posted by skumar_rao View Post
    it will depend you coding style and program logic.
    ummm... my c++ coding style is about a month old and is therefore still very underdeveloped As far as the program logic, I would like to incorporate this function into the program I started with here http://discussion.forum.nokia.com/fo...d.php?t=193660 . The goal is to simply replace the (_L("96473400308")); with the first entry of the phonebook so that the end-user can change the number in the field without my help. Could you please provide steps to implement this in the context of my original program?

    Thanks.

  12. #12
    Regular Contributor Mikhail617's Avatar
    Join Date
    Feb 2010
    Posts
    79
    Nevermind, I got it working now I guess I doubt my own abilities too much so times...

    Thanks.
    Last edited by Mikhail617; 2010-03-08 at 18:50. Reason: problem solved!

Similar Threads

  1. Sending and Receiving SMS Series 60 C++
    By jpuopolo67 in forum Symbian Networking & Messaging (Closed)
    Replies: 29
    Last Post: 2006-12-12, 05:31
  2. D311 can only dial up a manual dial RAS entry
    By scottch in forum Multimodecards
    Replies: 0
    Last Post: 2004-06-04, 20:55
  3. How to add a phonebook entry in SDK 3.0 for N8250?
    By nguyenduong in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2004-02-26, 19:03
  4. How can i write a phonebook entry?
    By lihuachen in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-08-28, 15:19
  5. AT-CMD to list multiple numbers in a single phonebook entry
    By schander in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-11-22, 03:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved