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_MULTIPLE_CHOICE_ALERT_H 18#define SYNCML_DM_MULTIPLE_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_MultipleChoiceAlert.h 27 28 General Description: A class representing the display alerts. 29 30==================================================================================================*/ 31 32#include "SYNCML_DM_ChoiceAlert.H" 33 34class SYNCML_DM_MultipleChoiceAlert : public SYNCML_DM_ChoiceAlert 35{ 36 37public: 38 39 SYNCML_DM_MultipleChoiceAlert(); 40 virtual ~SYNCML_DM_MultipleChoiceAlert() {}; 41 42 SYNCML_DM_RET_STATUS_T show(); 43 44 45private: 46 47 DMStringVector defaultResponses; // the default responses 48 XPL_DM_ALERT_MCHOICE_RES_T response; 49 50 void parseDefaultResponses(CPCHAR defaultResponses); 51 52 virtual XPL_DM_ALERT_RES_T getAction() const; 53 54 virtual SYNCML_DM_RET_STATUS_T getDefaultResponse(DMStringVector & userResponse) const; 55 56 virtual SYNCML_DM_RET_STATUS_T getResponse(DMStringVector & userResponse) const; 57 58 virtual void processParameter(CPCHAR name, CPCHAR value); 59 60 61}; 62 63#endif /* SYNCML_DM_MULTIPLE_CHOICE_ALERT_H */ 64