update for beta universally
[framework/messaging/email-service.git] / ipc / stub / include / ipc-queue.h
1 /*
2 *  email-service
3 *
4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5 *
6 * Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>
7
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 *
20 */
21
22
23
24 #ifndef _IPC_QUEUE_H_
25 #define _IPC_QUEUE_H_
26
27 class ipcEmailQueueItem
28 {
29 public:
30         ipcEmailQueueItem();
31         ipcEmailQueueItem(void* a_pData);
32         virtual ~ipcEmailQueueItem();
33
34 private:
35 public:
36         void*                   m_pData;
37         ipcEmailQueueItem*      m_pNext;
38
39 public:
40         void* Get();
41         void Set(void* a_pData);
42 };
43
44 class ipcEmailQueue
45 {
46 public:
47         ipcEmailQueue();
48         virtual ~ipcEmailQueue();
49
50 private:
51         ipcEmailQueueItem* m_pHead;
52         ipcEmailQueueItem* m_pTail;
53         int m_nCount;
54
55 public:
56         void* Pop();
57         bool Push(void* a_pData);
58
59         int GetCount();
60 };
61
62 #endif  /* _IPC_QUEUE_H_ */
63
64