blob: a244e0b224cfeda8d62fea1116abb01e45f72534 [file] [log] [blame]
jat@google.com134be542009-08-03 15:30:11 +00001#ifndef __MESSAGE_H
2#define __MESSAGE_H
3/*
4 * Copyright 2008 Google Inc.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
7 * use this file except in compliance with the License. You may obtain a copy of
8 * the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15 * License for the specific language governing permissions and limitations under
16 * the License.
17 */
18
19class Message {
20public:
21 virtual char getType() const = 0;
22 virtual bool isAsynchronous() const {
23 return false;
24 }
25 virtual ~Message() {}
26};
27
28#endif