1ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson/* 2ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * Copyright (C) 2010 The Android Open Source Project 3ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * Copyright (C) 2012-2013, The Linux Foundation. All rights reserved. 4ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * 5ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * Not a Contribution, Apache license notifications and license are 6ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * retained for attribution purposes only. 7ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson 8ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * Licensed under the Apache License, Version 2.0 (the "License"); 9ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * you may not use this file except in compliance with the License. 10ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * You may obtain a copy of the License at 11ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * 12ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * http://www.apache.org/licenses/LICENSE-2.0 13ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * 14ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * Unless required by applicable law or agreed to in writing, software 15ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * distributed under the License is distributed on an "AS IS" BASIS, 16ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * See the License for the specific language governing permissions and 18ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson * limitations under the License. 19ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson */ 20ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson 21ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson#ifndef ANDROID_IQCLIENT_H 22ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson#define ANDROID_IQCLIENT_H 23ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson 24ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson#include <stdint.h> 25ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson#include <sys/types.h> 26ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson#include <utils/Errors.h> 27ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson#include <utils/RefBase.h> 28ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson#include <binder/IInterface.h> 29ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson 30ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilsonnamespace qClient { 31ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson// ---------------------------------------------------------------------------- 32ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilsonclass IQClient : public android::IInterface 33ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson{ 34ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilsonpublic: 35ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson DECLARE_META_INTERFACE(QClient); 36a653efede03423aa840da24634f1ec6f20796f1eSimon Wilson virtual android::status_t notifyCallback(uint32_t command, 37a653efede03423aa840da24634f1ec6f20796f1eSimon Wilson const android::Parcel* inParcel, 38a653efede03423aa840da24634f1ec6f20796f1eSimon Wilson android::Parcel* outParcel) = 0; 39ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson}; 40ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson 41ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson// ---------------------------------------------------------------------------- 42ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson 43ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilsonclass BnQClient : public android::BnInterface<IQClient> 44ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson{ 45ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilsonpublic: 46ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson virtual android::status_t onTransact( uint32_t code, 47ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson const android::Parcel& data, 48ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson android::Parcel* reply, 49ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson uint32_t flags = 0); 50ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson}; 51ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson 52ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson// ---------------------------------------------------------------------------- 53ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson}; // namespace qClient 54ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson 55ef53c1c84ec55ed50f607d52b7abfbb86239408eSimon Wilson#endif // ANDROID_IQCLIENT_H 56