WEB开发网
开发学院手机开发Symbian 开发 Symbian开发小结 阅读

Symbian开发小结

 2010-05-31 19:42:00 来源:WEB开发网   
核心提示:{_LIT(KNetInfo, "Network: %SSignal: %d");TBuf<32> netName;TBuf<100> line;RConnectionMonitor monitor;TPckgBuf pkgNetworks;// establish conn

{

_LIT(KNetInfo, "Network: %S Signal: %d");

TBuf<32> netName;

TBuf<100> line;

RConnectionMonitor monitor;

TPckgBuf pkgNetworks;

// establish connection with the monitor server

monitor.ConnectL();

// prepare leave clean-up

CleanupClosePushL(monitor);

TRequestStatus status;

// get the list of available networks

monitor.GetPckgAttribute(EBearerIdWLAN, 0, KNetworkNames, pkgNetworks, status);

// suspend thread until the info is retrieved

// production code should use active objects

User::WaitForRequest( status ) ;

// leave if the asynchronous method returned an error

User::LeaveIfError(status.Int());

// reset networks list

aNetworks.Reset();

// add retrieved networks to the list

for(TUint i=0; i<>

{

netName.Copy(pkgNetworks().iNetwork[i].iName);

line.Format(KNetInfo, &netName, pkgNetworks().iNetwork[i].iSignalStrength);

aNetworks.AppendL(line);

}

// close server session

CleanupStack::PopAndDestroy(&monitor);

}

Note:

- Link against: ConnMon.lib

- S60 3rd Edition-specific capability needed: NetworkServices

19、有没有播放基于流的视频的方法

参考CVideoPlayerUtility的使用,可以播放流内容,详情参考SDK

问题一:更换S60第三版的应用程序图标

在mmp文件中添加

START BITMAP Test_aif.mbm

TARGETPATH esourceapps

HEADER

SOURCEPATH ..data

source c24 icon_lst.bmp

source c24 icon_lst_mask.bmp

source c24 icon_cxt.bmp

source c24 icon_cxt_mask.bmp

上一页  1 2 3 4 5 6 7  下一页

Tags:Symbian 开发 小结

编辑录入:coldstar [复制链接] [打 印]
赞助商链接