RemoteDisplay.h revision 35213f1420c669f43314cb75eadea450d21a75cb
1/*
2 * Copyright 2012, The Android Open Source Project
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#ifndef REMOTE_DISPLAY_H_
18
19#define REMOTE_DISPLAY_H_
20
21#include <media/stagefright/foundation/ABase.h>
22#include <utils/Errors.h>
23#include <utils/RefBase.h>
24
25namespace android {
26
27struct ALooper;
28struct ANetworkSession;
29struct WifiDisplaySource;
30
31struct RemoteDisplay : public RefBase {
32    RemoteDisplay();
33
34    status_t start();
35    status_t stop();
36
37protected:
38    virtual ~RemoteDisplay();
39
40private:
41    status_t mInitCheck;
42
43    sp<ALooper> mNetLooper;
44    sp<ALooper> mLooper;
45    sp<ANetworkSession> mNetSession;
46    sp<WifiDisplaySource> mSource;
47
48    DISALLOW_EVIL_CONSTRUCTORS(RemoteDisplay);
49};
50
51}  // namespace android
52
53#endif  // REMOTE_DISPLAY_H_
54
55