예제 #1
0
        public CachedList(BansheeModelProvider <T> provider)
        {
            string uuid = NextCacheId();

            cache = new BansheeModelCache <T> (ServiceManager.DbConnection, uuid, CacheableDatabaseModel.Instance, provider);
            Dispose();
        }
예제 #2
0
        public DatabaseFilterListModel(string name, string label, Banshee.Sources.DatabaseSource source,
                                       DatabaseTrackListModel trackModel, HyenaSqliteConnection connection, SqliteModelProvider <T> provider, U selectAllItem, string uuid)
            : base(trackModel)
        {
            this.source     = source;
            FilterName      = name;
            FilterLabel     = label;
            select_all_item = selectAllItem;

            this.connection  = connection;
            cache            = new BansheeModelCache <T> (connection, uuid, this, provider);
            HasSelectAllItem = true;
        }