Welcome to mirror list, hosted at ThFree Co, Russian Federation.

message.hpp « drape_frontend - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 73092796f10fc3adeb9c5b6c121563b0881128b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once

namespace df
{

class Message
{
public:
  enum Type
  {
    // in perfect world GetType never return this type
    // for this you need call SetType on subclass constructor
    Unknown,
    TileReadStarted,
    TileReadEnded,
    FlushTile,
    MapShapeReaded,
    UpdateModelView,
    UpdateReadManager,
    InvalidateRect,
    InvalidateReadManagerRect,
    Resize,
    Rotate
  };

  Message();
  virtual ~Message() {}
  Type GetType() const;

protected:
  void SetType(Type t);

private:
  Type m_type;
};

} // namespace df