IMediaRecorderClient.h revision e53b9ead781c36e96d6b6f012ddffc93a3d80f0d
1f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org/*
2f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Copyright (C) 2010 The Android Open Source Project
3f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
4f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Licensed under the Apache License, Version 2.0 (the "License");
5f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * you may not use this file except in compliance with the License.
6f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * You may obtain a copy of the License at
7f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
8f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *      http://www.apache.org/licenses/LICENSE-2.0
9f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *
10f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * Unless required by applicable law or agreed to in writing, software
11f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * distributed under the License is distributed on an "AS IS" BASIS,
12f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * See the License for the specific language governing permissions and
14f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org * limitations under the License.
15f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org */
16f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
17f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#ifndef ANDROID_IMEDIARECORDERCLIENT_H
18f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#define ANDROID_IMEDIARECORDERCLIENT_H
19f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
20f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#include <utils/RefBase.h>
21f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#include <binder/IInterface.h>
22f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#include <binder/Parcel.h>
23f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
24f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgnamespace android {
25f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
26f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgclass IMediaRecorderClient: public IInterface
27f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
28f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgpublic:
29f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    DECLARE_META_INTERFACE(MediaRecorderClient);
30f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
31f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    virtual void notify(int msg, int ext1, int ext2) = 0;
32f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
33f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
34f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org// ----------------------------------------------------------------------------
35f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
36f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgclass BnMediaRecorderClient: public BnInterface<IMediaRecorderClient>
37f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org{
38f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgpublic:
39f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org    virtual status_t    onTransact( uint32_t code,
40f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                    const Parcel& data,
41f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                    Parcel* reply,
42f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org                                    uint32_t flags = 0);
43f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org};
44f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
45f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org}; // namespace android
46f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org
47f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#endif // ANDROID_IMEDIARECORDERCLIENT_H
48f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org