[Local]:4th step for blocking sequence
[apps/agl-service-windowmanager.git] / src / allocate_queue.cpp
1 /*
2  * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include "allocate_queue.hpp"
18 #include <algorithm>
19
20 using std::string;
21
22 namespace wm {
23
24
25 AllocateRequestList::AllocateRequestList(){}
26 AllocateRequestList::~AllocateRequestList(){}
27
28 bool AllocateRequestList::addClient(WMClient* client){
29     return true;
30 }
31
32 void AllocateRequestList::removeClient(const string &appid){
33 }
34
35 WMClient* AllocateRequestList::lookUpClient(const string &appid){
36     return nullptr;
37 }
38
39 unsigned AllocateRequestList::getSequenceNumber(const string &appid, const string &role, const string &area){
40     return 0;
41 }
42
43 unsigned AllocateRequestList::addAllocateRequest(WMRequest req){
44     return 1;
45 }
46
47 bool AllocateRequestList::requestFinished(){
48     return true;
49 }
50
51 unsigned AllocateRequestList::lookUpAllocatingApp(const char *appid){
52     return 1;
53 }
54
55 void AllocateRequestList::setEndDrawFinished(unsigned request_seq, const string &role){
56
57 }
58
59 bool AllocateRequestList::endDrawFullfilled(unsigned request_seq){
60     return false;
61 }
62
63 void AllocateRequestList::removeRequest(unsigned req_seq){
64
65 }
66
67 void AllocateRequestList::setCurrentSequence(unsigned req_seq){
68     this->seq_num = req_seq;
69     if(0 == this->seq_num){
70        this->seq_num = 1;
71    }
72 }
73
74 bool AllocateRequestList::haveRequest(){
75     return true;
76 }
77
78 }