1/*
2 * Copyright (C) 2014 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 SYNCML_DM_CHOICE_ALERT_H
18#define SYNCML_DM_CHOICE_ALERT_H
19
20#ifndef __cplusplus
21#error "This is a C++ header file; it requires C++ to compile."
22#endif
23
24/*==================================================================================================
25
26    Header Name: SYNCML_DM_ChoiceAlert.h
27
28    General Description: A class representing the display alerts.
29
30==================================================================================================*/
31
32#include "SYNCML_DM_Alert.H"
33
34class SYNCML_DM_ChoiceAlert : public SYNCML_DM_Alert
35{
36
37public:
38  virtual void parse(SmlAlertPtr_t  pContent);
39  virtual ~SYNCML_DM_ChoiceAlert(){}
40
41protected:
42  DMStringVector choices;         // choices
43
44  void parseChoices(SmlItemListPtr_t p_alert_list_item);
45
46  void addChoice(const char* choice);
47
48};
49
50#endif /* SYNCML_DM_CHOICE_ALERT_H */
51