Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User lmyuanhang's Avatar
    Join Date
    Aug 2007
    Posts
    311
    How to modify a IAP Name?
    thanks!

  2. #2
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    check for CCommsDbTableView in documents.

  3. #3
    Registered User lmyuanhang's Avatar
    Join Date
    Aug 2007
    Posts
    311
    Quote Originally Posted by skumar_rao View Post
    check for CCommsDbTableView in documents.
    CCommsDbTableView modify iap WLAN_WEP_INDEX WLAN_AUTHENTICATION_MODE and so on.
    but I can't fond the way to modify iap name?
    how to do that?
    thanks

  4. #4
    Super Contributor shafali gupta's Avatar
    Join Date
    Nov 2004
    Posts
    1,009
    Quote Originally Posted by lmyuanhang View Post
    CCommsDbTableView modify iap WLAN_WEP_INDEX WLAN_AUTHENTICATION_MODE and so on.
    but I can't fond the way to modify iap name?
    how to do that?
    thanks
    Did you tried WriteTextL() method of CCommsDbTableView.

    It writes the text in particular column.
    May be it could help you.
    Regards,
    Shafali

  5. #5
    Registered User lmyuanhang's Avatar
    Join Date
    Aug 2007
    Posts
    311
    Quote Originally Posted by shafali gupta View Post
    Did you tried WriteTextL() method of CCommsDbTableView.

    It writes the text in particular column.
    May be it could help you.
    yes i tried
    writetextL;
    but i don't konw the frist paramter
    table->WriteTextL(???, _L("APName"));

  6. #6
    Super Contributor shafali gupta's Avatar
    Join Date
    Nov 2004
    Posts
    1,009
    Quote Originally Posted by lmyuanhang View Post
    yes i tried
    writetextL;
    but i don't konw the frist paramter
    table->WriteTextL(???, _L("APName"));


    Try this:

    table->WriteTextL(TPtrC(COMMDB_NAME), _L("APName"));
    Regards,
    Shafali

  7. #7
    Registered User lmyuanhang's Avatar
    Join Date
    Aug 2007
    Posts
    311
    Quote Originally Posted by shafali gupta View Post
    Try this:

    table->WriteTextL(TPtrC(COMMDB_NAME), _L("APName"));
    i' m sorry ,excute the sentence the application exit directly;

  8. #8
    Super Contributor shafali gupta's Avatar
    Join Date
    Nov 2004
    Posts
    1,009
    Quote Originally Posted by lmyuanhang View Post
    i' m sorry ,excute the sentence the application exit directly;

    Did you call updateRecord() before writing the text.

    like this:

    CCommsDbTableView* aView ;
    aView = aComDB ->OpenTableLC(TPtrC(IAP));
    CleanupStack::PushL(aView);

    aError = aView->UpdateRecord(iapId);
    aView->WriteTextL(TPtrC(COMMDB_NAME), aIAPName);

    you can refer to :
    http://wiki.forum.nokia.com/index.ph...e_access_point
    Regards,
    Shafali

  9. #9
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    Quote Originally Posted by lmyuanhang View Post
    i' m sorry ,excute the sentence the application exit directly;
    Check the panic code when the application crashes. It will help you further debug the application.

  10. #10
    Registered User lmyuanhang's Avatar
    Join Date
    Aug 2007
    Posts
    311
    How to modify a packet data bearer IAP Name?

    i use the fellow code it can modify the Wireless lan IAp name?
    but it can't modify the packet data bearer iap name ?
    why?
    how to modify the packet data bearer iap name?
    thanks?
    Code:
             LOCAL_D const TUint32 KUidNone = 0;
    
    	CCommsDatabase* db = CCommsDatabase::NewL();
    	CleanupStack::PushL(db);
    	CApSelect * iSelect = CApSelect::NewLC(*db, KEApIspTypeAll, EApBearerTypeAll, KEApSortUidAscending);
    	TInt err = db->BeginTransaction();
    	CApAccessPointItem* wlanNewItem = CApAccessPointItem::NewLC();
    	
    	// Store it into the iDb.
    	TBool val = 1;
    	TUint32 newalanid;
    
    	CApDataHandler* handler = CApDataHandler::NewLC(*db);
    	TUint32 apid;
    	handler->AccessPointDataL(aConnectionID, *wlanNewItem);\\the aconnectionID is a input parameter
    	wlanNewItem->ReadTextL( EApWapAccessPointName, buf ); 
    	wlanNewItem->SetNamesL(_L("good"));
    
    	handler->UpdateAccessPointDataL(*wlanNewItem, val);
    
    	CCommsDbTableView* wLanServiceTable = db->OpenViewMatchingUintLC( 
    	TPtrC( WLAN_SERVICE ), TPtrC( WLAN_SERVICE_ID ), newalanid );
    	TInt errorCode = wLanServiceTable->GotoFirstRecord();
    		
    	if ( errorCode == KErrNone )
    	{
    		wLanServiceTable->UpdateRecord();
    	}
    	else
    	{
    		TUint32 dummyUid( KUidNone );
    		User::LeaveIfError( wLanServiceTable->InsertRecord( dummyUid ) );
    		// Save link to LAN service
    		wLanServiceTable->WriteUintL( TPtrC( WLAN_SERVICE_ID ), aConnectionID );
    	}
    	
    	wLanServiceTable->PutRecordChanges();
    	err = db->CommitTransaction();    //	// End a transaction. Call after `InsertRecord()` or `UpdateRecord()`.
    	CleanupStack::PopAndDestroy(5);

Similar Threads

  1. CommDB - Which IAP Id is the right IAP Id??
    By hoopsman in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2009-09-09, 20:52
  2. IAP query
    By kumar_sai123 in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2008-07-21, 14:16
  3. Choose IAP for video streaming session
    By molst in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2006-12-05, 08:01
  4. RGenericAgent, RConnection, enumeration and IAP strange behavior PLEASE HELP!!!!!!!!
    By stenlik in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-12-20, 05:40
  5. Iap Creation and Connection.
    By shashishaw in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-07-20, 09:06

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