Ignore:
Timestamp:
02/24/14 13:05:22 (10 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
68eacde
Parents:
127b5d8
Message:

Add the mime detection to the AppCafe? backend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/pbiDBAccess.cpp

    r2916111 r4be3e27  
    189189} 
    190190 
     191bool PBIDBAccess::installedPbiHasXdgMime(QString installPath){ 
     192  if(!installPath.endsWith("/")){ installPath.append("/"); } 
     193  bool ok = DBDir->cd(installPath+".xdg-mime"); 
     194  if(ok){ 
     195    if( DBDir->entryList(QStringList()<<"*.xml",QDir::Files).length() > 0 ){ return TRUE; }        
     196  } 
     197  return FALSE; 
     198} 
     199 
    191200QString PBIDBAccess::indexFilePath(){ 
    192201  return DBPath+"index/"+currentRepoID+"-index"; 
Note: See TracChangeset for help on using the changeset viewer.