zoukankan      html  css  js  c++  java
  • symbian Folder selection dialog (转)

    From Forum Nokia Wiki

    Here is an example on how to implement a Select folder dialog for S60 3rd edition, with common dialog classes.

    Source code

    TFileName folder;
     
     // Create select memory dialog
     CAknMemorySelectionDialog* memDlg = 
                 CAknMemorySelectionDialog::NewL(ECFDDialogTypeCopy, ETrue);
     CAknMemorySelectionDialog::TMemory memory = 
                CAknMemorySelectionDialog::EPhoneMemory;
     
     // Create select folder dialog
     CAknFileSelectionDialog* dlg = 
                 CAknFileSelectionDialog::NewL(ECFDDialogTypeCopy);
     
             // some dialog customizations:
     dlg->SetTitleL(_L("Select folder"));
     dlg->SetRightSoftkeyRootFolderL(_L("Back")); // for root folder
     
             TBool result = EFalse;
     
     for (;;)
     {
      if ( memDlg->ExecuteL(memory) == CAknFileSelectionDialog::ERightSoftkey )
      {
       // cancel selection
       break;
      }
     
      if (memory==CAknMemorySelectionDialog::EMemoryCard)
      {
       folder = PathInfo::MemoryCardRootPath();
      }
      else
      {
       folder = PathInfo::PhoneMemoryRootPath();
      }
     
      if (dlg->ExecuteL(folder))
      {
                              // we got our folder and finish loop
                              result = ETrue;
       break;
      }
     
     }
     
     delete memDlg;
     delete dlg;
    
    
  • 相关阅读:
    Docker 国内镜像源
    SeMF安装指南
    CGI environment variables
    OpenResty + ngx_lua_waf使用
    OpenResty源码编译安装
    Ubuntu安装DVWA
    C安全编码实践
    [译]The Complete Application Security Checklist
    HTTP 安全头配置
    AWVS 10.5使用指南
  • 原文地址:https://www.cnblogs.com/yaoliang11/p/1808074.html
Copyright © 2011-2022 走看看