Ignore:
Timestamp:
02/25/14 13:00:48 (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:
50a696a
Parents:
ff5a5e4
Message:

Clean up the AppCafe? browser home page - now just have a toolbutton to browser categories, and instead put recommended applications on the home page (new defaultrecommendations.txt resource). These recommendations can be automatically updated later if we add that ability for the repo to include an additional file with this information.

File:
1 edited

Legend:

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

    r9cbf5aa r32be23f  
    152152  } 
    153153  return output; //newest->oldest 
     154} 
     155 
     156QStringList PBIBackend::getRecommendations(){ 
     157  QStringList apps; 
     158  QStringList out = Extras::readFile(":defaultrecommendations.txt"); //make this load a db file later 
     159  for(int i=0; i<out.length(); i++){ 
     160    //Make sure they are all valid apps in the repo 
     161    if(APPHASH.contains(out[i])){ apps << out[i]; } 
     162  } 
     163  return apps; 
    154164} 
    155165 
Note: See TracChangeset for help on using the changeset viewer.