1 /*
2  * Copyright (C) 2010 The Android Open Source Project
3  * Copyright (C) 2012-2013, The Linux Foundation. All rights reserved.
4  *
5  * Not a Contribution, Apache license notifications and license are
6  * retained for attribution purposes only.
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 #ifndef ANDROID_IQCLIENT_H
22 #define ANDROID_IQCLIENT_H
23 
24 #include <stdint.h>
25 #include <sys/types.h>
26 #include <utils/Errors.h>
27 #include <utils/RefBase.h>
28 #include <binder/IInterface.h>
29 
30 namespace qClient {
31 // ----------------------------------------------------------------------------
32 class IQClient : public android::IInterface
33 {
34 public:
35     DECLARE_META_INTERFACE(QClient);
36     virtual android::status_t notifyCallback(uint32_t msg, uint32_t value) = 0;
37 };
38 
39 // ----------------------------------------------------------------------------
40 
41 class BnQClient : public android::BnInterface<IQClient>
42 {
43 public:
44     virtual android::status_t onTransact( uint32_t code,
45                                           const android::Parcel& data,
46                                           android::Parcel* reply,
47                                           uint32_t flags = 0);
48 };
49 
50 // ----------------------------------------------------------------------------
51 }; // namespace qClient
52 
53 #endif // ANDROID_IQCLIENT_H
54