import old mobicore
[GitHub/LineageOS/android_hardware_samsung_slsi_exynos7580.git] / mobicore / rootpa / Code / Android / app / jni / CommonPAWrapper / CmpBase.h
CommitLineData
cd9434cc 1/*
15e8442f
JA
2Copyright © Trustonic Limited 2013
3
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without modification,
7are permitted provided that the following conditions are met:
8
9 1. Redistributions of source code must retain the above copyright notice, this
10 list of conditions and the following disclaimer.
11
12 2. Redistributions in binary form must reproduce the above copyright notice,
13 this list of conditions and the following disclaimer in the documentation
14 and/or other materials provided with the distribution.
15
16 3. Neither the name of the Trustonic Limited nor the names of its contributors
17 may be used to endorse or promote products derived from this software
18 without specific prior written permission.
19
20THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
24INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
25BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
28OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
29OF THE POSSIBILITY OF SUCH DAMAGE.
30*/
cd9434cc
T
31#ifndef CMPBASE_H
32#define CMPBASE_H
33
34#include <jni.h>
35#include "logging.h"
36#include "provisioningagent.h"
37
38class CmpBase
39{
40 public:
41 CmpBase(JNIEnv* env, jobject msgs);
42 virtual ~CmpBase();
43 int numberOfElements();
15e8442f 44 private:
cd9434cc
T
45 CmpBase();
46 CmpBase(CmpBase&);
47 protected:
48 JNIEnv* env_;
15e8442f 49 jobject msgs_;
cd9434cc
T
50 jclass cls_;
51 jclass objectCls_;
52 int numberOfElements_;
53 bool broken_;
54};
55
56#endif // CMPBASE_H