Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2498 - 1

2
namespace GMap.NET
3
{
4
   using System.IO;
5
   using System;
6
 
7
   /// <summary>
8
   /// pure abstraction for image cache
9
   /// </summary>
10
   public interface PureImageCache
11
   {
12
      /// <summary>
13
      /// puts image to db
14
      /// </summary>
15
      /// <param name="tile"></param>
16
      /// <param name="type"></param>
17
      /// <param name="pos"></param>
18
      /// <param name="zoom"></param>
19
      /// <returns></returns>
20
      bool PutImageToCache(byte[] tile, int type, GPoint pos, int zoom);
21
 
22
      /// <summary>
23
      /// gets image from db
24
      /// </summary>
25
      /// <param name="type"></param>
26
      /// <param name="pos"></param>
27
      /// <param name="zoom"></param>
28
      /// <returns></returns>
29
      PureImage GetImageFromCache(int type, GPoint pos, int zoom);
30
 
31
      /// <summary>
32
      /// delete old tiles beyond a supplied date
33
      /// </summary>
34
      /// <param name="date">Tiles older than this will be deleted.</param>
35
      /// <param name="type">provider dbid or null to use all providers</param>
36
      /// <returns>The number of deleted tiles.</returns>
37
      int DeleteOlderThan(DateTime date, int ? type);
38
   }
39
}