TBuf<256> cDrivePath; // phone memory root cDrivePath.Copy(PathInfo::PhoneMemoryRootPath()); // Images path on c drive cDrivePath.Append(PathInfo::ImagesPath());
获得存储卡中图片文件夹的路径
TBuf<256> eDrivePath;/* next, the MMC gallery if one exists *///Memory Card root eDrivePath.Copy(PathInfo::MemoryCardRootPath());//Images path in e driveeDrivePath.Append(PathInfo::ImagesPath());
http://www.developer.nokia.com/Community/Wiki/Portal:Symbian_C%2B%2B_(Chinese)
强制打开CEikEdwin关联的虚拟键盘
http://www.developer.nokia.com/Community/Wiki/%E5%BC%BA%E5%88%B6%E6%89%93%E5%BC%80CEikEdwin%E5%85%B3%E8%81%94%E7%9A%84%E8%99%9A%E6%8B%9F%E9%94%AE%E7%9B%98
http://www.developer.nokia.com/Community/Wiki/%E5%A6%82%E4%BD%95%E7%9B%B4%E6%8E%A5%E5%9C%A8%E5%B1%8F%E5%B9%95%E4%B8%8A%E7%BB%98%E5%88%B6%E5%9B%BE%E7%89%87
http://www.developer.nokia.com/Community/Wiki/%E9%80%9A%E8%AF%9D%E4%B8%AD%E6%8D%95%E8%8E%B7%E7%BB%93%E6%9D%9F%EF%BC%88%E7%BA%A2%EF%BC%89%E9%94%AE
http://www.developer.nokia.com/Community/Wiki/%E5%90%91%E7%94%A8%E6%88%B7%E9%9A%90%E8%97%8F%E4%B8%8D%E5%BF%85%E8%A6%81%E7%9A%84%E6%8E%A5%E5%85%A5%E7%82%B9
http://www.developer.nokia.com/Community/Wiki/%E5%88%9B%E5%BB%BAInternet%E8%BF%9E%E6%8E%A5%E6%9C%80%E5%A5%BD%E7%9A%84%E6%96%B9%E6%B3%95
如何将控件绘制到位图上
http://www.developer.nokia.com/Community/Wiki/%E5%A6%82%E4%BD%95%E5%B0%86%E6%8E%A7%E4%BB%B6%E7%BB%98%E5%88%B6%E5%88%B0%E4%BD%8D%E5%9B%BE%E4%B8%8A
Symbian C++中的表单
http://www.developer.nokia.com/Community/Wiki/Symbian_C%2B%2B%E4%B8%AD%E7%9A%84%E8%A1%A8%E5%8D%95
RHostResolver和选择接入点对话框重复显示的问题
http://www.developer.nokia.com/Community/Wiki/RHostResolver%E5%92%8C%E9%80%89%E6%8B%A9%E6%8E%A5%E5%85%A5%E7%82%B9%E5%AF%B9%E8%AF%9D%E6%A1%86%E9%87%8D%E5%A4%8D%E6%98%BE%E7%A4%BA%E7%9A%84%E9%97%AE%E9%A2%98
Symbian^3 Kinetic Scrolling
http://www.developer.nokia.com/Community/Wiki/Symbian%5E3_Kinetic_Scrolling
如何生成一个新的互联网访问接入点
http://www.developer.nokia.com/Community/Wiki/%E5%A6%82%E4%BD%95%E7%94%9F%E6%88%90%E4%B8%80%E4%B8%AA%E6%96%B0%E7%9A%84%E4%BA%92%E8%81%94%E7%BD%91%E8%AE%BF%E9%97%AE%E6%8E%A5%E5%85%A5%E7%82%B9
在预装应用使用ECom插件
http://www.developer.nokia.com/Community/Wiki/%E5%9C%A8%E9%A2%84%E8%A3%85%E5%BA%94%E7%94%A8%E4%BD%BF%E7%94%A8ECom%E6%8F%92%E4%BB%B6
如何解包一个sis文件
http://www.developer.nokia.com/Community/Wiki/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%8C%85%E4%B8%80%E4%B8%AAsis%E6%96%87%E4%BB%B6
Symbian如何临听文件目录的变化(NotifyChange)
通常我们在设计程序的时候,可能需要一个UI还需要一个后台的应用程序.
通常根据情况UI需要修改某些配置文件来控制后台应用程序.
这样后台需要有办法监听文件的变化.
看我们如何实现这个监听过程
void CMyCNotify::StartMonitoring()
{
if(!IsActive())
{
//ENotifyEntry 监听目录的变化
//ENotifyFile监听文件的变化
//ENotifyDir监听路径的变化
iFs.NotifyChange(ENotifyEntry, iStatus, _L("c:\\data\\"));//临听对应的目录
SetActive();
}
}
http://www.developer.nokia.com/Community/Wiki/%E5%B1%8F%E5%B9%95%E6%96%B9%E5%90%91%E6%94%B9%E5%8F%98%E6%97%B6%E5%A6%82%E4%BD%95%E5%9C%A8exe%E7%A8%8B%E5%BA%8F%E4%B8%AD%EF%BC%88%E6%97%A0CONE%E7%8E%AF%E5%A2%83%EF%BC%89%E8%8E%B7%E5%BE%97%E9%80%9A%E7%9F%A5%EF%BC%9F
http://www.developer.nokia.com/Community/Wiki/%E6%8D%95%E6%8D%89S60%E7%AC%AC%E4%B8%89%E7%89%88FP2%E7%9A%84%E9%80%9A%E8%AF%9D/%E6%8C%82%E6%9C%BA%E9%94%AE
http://www.developer.nokia.com/Community/Wiki/%E5%A6%82%E4%BD%95%E5%B0%86%E5%9B%BE%E7%89%87%E8%AF%BB%E5%85%A5Symbian%E4%BD%8D%E5%9B%BE
void CImage_Reader::GetFileType(const TDesC& aFileName, TDes8& aFileType) { TEntry FileEntry; if(CCoeEnv::Static()->FsSession().Entry(aFileName,FileEntry) == KErrNone) { TBuf8<255> FileBuffer; if(!FileEntry.IsDir()) { TInt FileSize = FileEntry.iSize; if(FileSize > 255) { FileSize = 255; } if(CCoeEnv::Static()->FsSession().ReadFileSection(aFileName,0,FileBuffer,FileSize) == KErrNone) { RApaLsSession RSession; if(RSession.Connect() == KErrNone) { TDataRecognitionResult FileDataType; RSession.RecognizeData(aFileName,FileBuffer,*&FileDataType); if(FileDataType.iConfidence > aResult.iConfidence) { aFileType.Copy(FileDataType.iDataType.Des8()); } RSession.Close(); } } } } }
RWsSession iWsSession; CWindowGc* iWindowGc; CWsScreenDevice* iScreenDevice; RWindowGroup iWindowGroup; RWindow iWindow; void CWindowDrawer::Draw(void) { iWindowGc->Activate(iWindow); TRect DrwRect(TPoint(0,0), iWindow.Size()); iWindow.Invalidate(DrwRect); iWindow.BeginRedraw(); iWindowGc->Clear(DrwRect); if(iMyFont) { } iWindow.EndRedraw(); iWindowGc->Deactivate(); iWsSession.Flush(); } void CWindowDrawer::RunL() { if (iStatus != KErrCancel) { TWsRedrawEvent e; iWsSession.GetRedraw(e); // if Windows Server does not want a redraw the window handle is 0 if (e.Handle() != 0) { // draw our only window Draw(); } iWsSession.RedrawReady(&iStatus); SetActive(); } } void CWindowDrawer::ConstructL(void) { CActiveScheduler::Add(this); User::LeaveIfError(iWsSession.Connect()); iScreenDevice=new (ELeave) CWsScreenDevice(iWsSession); User::LeaveIfError(iScreenDevice->Construct()); User::LeaveIfError(iScreenDevice->CreateContext(iWindowGc)); TFontSpec MyeFontSpec (KFontArial, 12*15); MyeFontSpec.iTypeface.SetIsProportional(ETrue); User::LeaveIfError(iScreenDevice->GetNearestFontInTwips(iMyFont,MyeFontSpec)); iWindowGroup=RWindowGroup(iWsSession); User::LeaveIfError(iWindowGroup.Construct((TUint32)&iWindowGroup, EFalse)); // iWindowGroup.SetOrdinalPosition(0,ECoeWinPriorityNormal); iWindowGroup.SetOrdinalPosition(0,ECoeWinPriorityAlwaysAtFront); iWindowGroup.EnableReceiptOfFocus(EFalse); CApaWindowGroupName* winGroupName=CApaWindowGroupName::NewLC(iWsSession); winGroupName->SetHidden(ETrue); winGroupName->SetWindowGroupName(iWindowGroup); CleanupStack::PopAndDestroy(); iWindow=RWindow(iWsSession); User::LeaveIfError(iWindow.Construct(iWindowGroup, (TUint32)&iWindow)); TPixelsTwipsAndRotation SizeAndRotation; iScreenDevice->GetDefaultScreenSizeAndRotation(SizeAndRotation); iWindow.Activate(); iWindow.SetExtent(TPoint(0,0),SizeAndRotation.iPixelSize); iWindow.SetBackgroundColor(KRgbBlue); // iWindow.SetOrdinalPosition(0,ECoeWinPriorityNormal); iWindow.SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront); iWindow.SetNonFading(ETrue); iWindow.SetVisible(ETrue); Draw(); iWsSession.RedrawReady(&iStatus); SetActive(); } void CWindowDrawer::DoCancel() { iWsSession.RedrawReadyCancel(); }
http://www.developer.nokia.com/Community/Wiki/%E5%A6%82%E4%BD%95%E4%B8%8D%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%A1%86%E6%9E%B6%E6%9D%A5%E7%BB%98%E5%88%B6%E5%B1%8F%E5%B9%95