~stolowski/unity-lens-applications/launcher-item-pos

« back to all changes in this revision

Viewing changes to vapi/unity-package-search.vapi

  • Committer: Tarmac
  • Author(s): Pawel Stolowski
  • Date: 2012-09-18 14:27:16 UTC
  • mfrom: (297.1.11 results-ribbons)
  • Revision ID: tarmac-20120918142716-sn2w611xnx0o5mgp
Implemented price ribbons for Application Lens search results.. Fixes: https://bugs.launchpad.net/bugs/1049593. Approved by Neil J. Patel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
      public SearchResult search (string search_string, uint max_hits, Unity.Package.SearchType search_type, Unity.Package.Sort sort);
31
31
      public SearchResult get_random_apps (string? filter_query, uint n_apps);
32
32
      public SearchResult get_apps (string? filter_query, uint n_apps, AppFilterCallback cb);
 
33
      public SearchResult get_by_exact_names (GLib.SList<string> names);
33
34
      public PackageInfo? get_by_desktop_file (string desktop_file);
34
35
    }
35
36
    
43
44
    [Compact]
44
45
    [CCode (cname = "UnityPackageInfo", free_function = "unity_package_package_info_free", cheader_filename = "unity-package-search.h")]
45
46
    public class PackageInfo {
46
 
      public string package_name;
47
 
            public string application_name;
48
 
            public string desktop_file;
49
 
            public string icon;
50
 
            public int relevancy;
 
47
        public string package_name;
 
48
        public string application_name;
 
49
        public string desktop_file;
 
50
        public string icon;
 
51
        public string price;
 
52
        public bool needs_purchase;
 
53
        public int relevancy;
51
54
    }
52
55
  }
53
56
}