2 * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #include "allocate_queue.hpp"
25 AllocateRequestList::AllocateRequestList(){}
26 AllocateRequestList::~AllocateRequestList(){}
28 bool AllocateRequestList::addClient(WMClient* client){
32 void AllocateRequestList::removeClient(const string &appid){
35 WMClient* AllocateRequestList::lookUpClient(const string &appid){
39 unsigned AllocateRequestList::getSequenceNumber(const string &appid, const string &role, const string &area){
43 unsigned AllocateRequestList::addAllocateRequest(WMRequest req){
47 bool AllocateRequestList::requestFinished(){
51 unsigned AllocateRequestList::lookUpAllocatingApp(const char *appid){
55 void AllocateRequestList::setEndDrawFinished(unsigned request_seq, const string &role){
59 bool AllocateRequestList::endDrawFullfilled(unsigned request_seq){
63 void AllocateRequestList::removeRequest(unsigned req_seq){
67 void AllocateRequestList::setCurrentSequence(unsigned req_seq){
68 this->seq_num = req_seq;
69 if(0 == this->seq_num){
74 bool AllocateRequestList::haveRequest(){