Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
chxavaccesspointsettingsitem.cpp
Package: helix.src.0812.rar [view]
Upload User: zhongxx05
Upload Date: 2007-06-06
Package Size: 33641k
Code Size: 2k
Category:
Symbian
Development Platform:
C/C++
- /************************************************************************
- * chxavaccesspointsettingsitem.cpp
- * --------------------------------
- *
- * Synopsis:
- * Implementation of access point settings item.
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- // Includes from this project...
- #include "chxavmisc.h"
- #include "chxavcleanstring.h"
- #include "chxavaccesspointdb.h"
- #include "chxavaccesspointsettingsitem.h"
- ///////////////////////////////////
- // ctor
- CHXAvAccessPointSettingsItem::CHXAvAccessPointSettingsItem(TInt aIdentifier, TUint32& apId)
- : CAknSettingItem(aIdentifier), m_apId(apId)
- {
- }
- ///////////////////////////////////
- // dtor
- CHXAvAccessPointSettingsItem::~CHXAvAccessPointSettingsItem()
- {
- }
- ////////////////////////////////////////////
- // ensure text description accuately indicates what the
- // access point id is set to
- //
- void CHXAvAccessPointSettingsItem::UpdateApTextL()
- {
- CHXAvAccessPointDB* pDb = new (ELeave) CHXAvAccessPointDB;
- AUTO_PUSH_POP_DEL(pDb);
- pDb->ConstructL();
- m_spApText = pDb->AllocAccessPointNameL(m_apId);
- if( 0 == m_spApText->Length() )
- {
- TPtr ptr = m_spApText->Des();
- ptr.Copy(CHXAvCleanString(R_AVP_NO_ACCESS_POINT)());
- SetCompulsoryIndTextL (_L("*"));
- }
- }
- ////////////////////////////////////////////
- //
- const TDesC& CHXAvAccessPointSettingsItem::SettingTextL()
- {
- if(!m_spApText)
- {
- UpdateApTextL();
- }
- return *m_spApText;
- }
- ////////////////////////////////////////////
- // show the settings page associated with this settings item
- //
- void CHXAvAccessPointSettingsItem::EditItemL( TBool /* aCalledFromMenu */)
- {
- TInt wapId = CHXAvMisc::RunAccessPointSettingPageL(m_apId);
- if( wapId != 0 )
- {
- CHXAvAccessPointDB* pDb = new (ELeave) CHXAvAccessPointDB;
- AUTO_PUSH_POP_DEL(pDb);
- pDb->ConstructL();
- TInt apId = 0;
- apId = pDb->GetAPIdFromWapIdL(wapId);
- // user selected something...
- m_apId = apId;
- // update name
- UpdateApTextL();
- UpdateListBoxTextL();
- }
- }