147ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
234ee09551764b045fdc02df754157473125edf60Kevin Tang *
334ee09551764b045fdc02df754157473125edf60Kevin Tang * Redistribution and use in source and binary forms, with or without
434ee09551764b045fdc02df754157473125edf60Kevin Tang * modification, are permitted provided that the following conditions are
534ee09551764b045fdc02df754157473125edf60Kevin Tang * met:
634ee09551764b045fdc02df754157473125edf60Kevin Tang *     * Redistributions of source code must retain the above copyright
734ee09551764b045fdc02df754157473125edf60Kevin Tang *       notice, this list of conditions and the following disclaimer.
834ee09551764b045fdc02df754157473125edf60Kevin Tang *     * Redistributions in binary form must reproduce the above
934ee09551764b045fdc02df754157473125edf60Kevin Tang *       copyright notice, this list of conditions and the following
1034ee09551764b045fdc02df754157473125edf60Kevin Tang *       disclaimer in the documentation and/or other materials provided
1134ee09551764b045fdc02df754157473125edf60Kevin Tang *       with the distribution.
1247ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo *     * Neither the name of The Linux Foundation, nor the names of its
1334ee09551764b045fdc02df754157473125edf60Kevin Tang *       contributors may be used to endorse or promote products derived
1434ee09551764b045fdc02df754157473125edf60Kevin Tang *       from this software without specific prior written permission.
1534ee09551764b045fdc02df754157473125edf60Kevin Tang *
1634ee09551764b045fdc02df754157473125edf60Kevin Tang * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
1734ee09551764b045fdc02df754157473125edf60Kevin Tang * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
1834ee09551764b045fdc02df754157473125edf60Kevin Tang * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
1934ee09551764b045fdc02df754157473125edf60Kevin Tang * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
2034ee09551764b045fdc02df754157473125edf60Kevin Tang * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2134ee09551764b045fdc02df754157473125edf60Kevin Tang * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2234ee09551764b045fdc02df754157473125edf60Kevin Tang * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
2334ee09551764b045fdc02df754157473125edf60Kevin Tang * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
2434ee09551764b045fdc02df754157473125edf60Kevin Tang * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
2534ee09551764b045fdc02df754157473125edf60Kevin Tang * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
2634ee09551764b045fdc02df754157473125edf60Kevin Tang * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2734ee09551764b045fdc02df754157473125edf60Kevin Tang *
2834ee09551764b045fdc02df754157473125edf60Kevin Tang */
2947ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo#ifndef IZAT_PROXY_BASE_H
3047ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo#define IZAT_PROXY_BASE_H
3147ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo#include <gps_extended.h>
3247ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo#include <MsgTask.h>
3334ee09551764b045fdc02df754157473125edf60Kevin Tang
3447ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russonamespace loc_core {
3534ee09551764b045fdc02df754157473125edf60Kevin Tang
3647ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russoclass LocApiBase;
3747ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russoclass LocAdapterBase;
3847ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russoclass ContextBase;
3934ee09551764b045fdc02df754157473125edf60Kevin Tang
4047ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russoclass LBSProxyBase {
4147ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo    friend class ContextBase;
4247ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo    inline virtual LocApiBase*
4347ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo        getLocApi(const MsgTask* msgTask,
4447ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo                  LOC_API_ADAPTER_EVENT_MASK_T exMask,
4547ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo                  ContextBase* context) const {
4647ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo        return NULL;
4747ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo    }
4847ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russoprotected:
4947ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo    inline LBSProxyBase() {}
5047ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russopublic:
5147ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo    inline virtual ~LBSProxyBase() {}
5247ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo    inline virtual void requestUlp(LocAdapterBase* adapter,
5347ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo                                   unsigned long capabilities) const {}
5447ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo    inline virtual bool hasAgpsExtendedCapabilities() const { return false; }
5547ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo    inline virtual bool hasCPIExtendedCapabilities() const { return false; }
560c7fdf015bfdb33b14a990b280c38386cb8e1f9cVineeta Srivastava    inline virtual void modemPowerVote(bool power) const {}
5747ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo    virtual void injectFeatureConfig(ContextBase* context) const {}
5847ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo};
5934ee09551764b045fdc02df754157473125edf60Kevin Tang
6047ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russotypedef LBSProxyBase* (getLBSProxy_t)();
6134ee09551764b045fdc02df754157473125edf60Kevin Tang
6247ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo} // namespace loc_core
6334ee09551764b045fdc02df754157473125edf60Kevin Tang
6447ad5e4cf2f6810db3c0e7ec79696496a94b6f0dDante Russo#endif // IZAT_PROXY_BASE_H
65