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_DISPLAY_ALERT_H 18#define SYNCML_DM_DISPLAY_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_DisplayAlert.h 27 28 General Description: A class representing the display alerts. 29 30==================================================================================================*/ 31 32#include "SYNCML_DM_Alert.H" 33 34class SYNCML_DM_DisplayAlert : public SYNCML_DM_Alert 35{ 36 37public: 38 39 SYNCML_DM_RET_STATUS_T show(); 40 virtual ~SYNCML_DM_DisplayAlert(){} 41 42 43private: 44 45 virtual XPL_DM_ALERT_RES_T getAction() const; 46 47 virtual SYNCML_DM_RET_STATUS_T getDefaultResponse(DMStringVector & userResponse) const; 48 49 virtual SYNCML_DM_RET_STATUS_T getResponse(DMStringVector & userResponse) const; 50 51 52 virtual void processParameter(CPCHAR name, CPCHAR value); 53 54}; 55 56#endif /* SYNCML_DM_DISPLAY_ALERT_H */ 57