/*
 HvcSystemProfile.java
 Copyright (c) 2015 NTT DOCOMO,INC.
 Released under the MIT license
 http://opensource.org/licenses/mit-license.php
 */
package org.deviceconnect.android.deviceplugin.hvc.profile;

import org.deviceconnect.android.deviceplugin.hvc.setting.HvcSettingActivity;
import org.deviceconnect.android.event.EventManager;
import org.deviceconnect.android.message.MessageUtils;
import org.deviceconnect.android.profile.SystemProfile;
import org.deviceconnect.message.DConnectMessage;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

/**
 * HVC DevicePlugin, System Profile.
 * 
 * @author NTT DOCOMO, INC.
 */
public class HvcSystemProfile extends SystemProfile {

    /**
     * 設定画面を設定.
     * 
     * @param request リクエスト
     * @param bundle バンドル
     * 
     * @return 設定アクティビティ
     */
    protected Class<? extends Activity> getSettingPageActivity(final Intent request, final Bundle bundle) {
        return HvcSettingActivity.class;
    }

    @Override
    protected boolean onDeleteEvents(final Intent request, final Intent response, final String sessionKey) {

        if (sessionKey == null || sessionKey.length() == 0) {
            MessageUtils.setInvalidRequestParameterError(response);
        } else if (EventManager.INSTANCE.removeEvents(sessionKey)) {
            setResult(response, DConnectMessage.RESULT_OK);
        } else {
            MessageUtils.setUnknownError(response);
        }

        return true;
    }
}

@@ -731,15 +731,28 @@
   * 
-%E8%A8%AD%E5%AE%9A%E7%94%BB%E9%9D%A2%E3%82%92%E8%A8%AD%E5%AE%9A
+set setting activity
 .%0A  
@@ -783,13 +783,15 @@
 est 
-%E3%83%AA%E3%82%AF%E3%82%A8%E3%82%B9%E3%83%88
+request
 %0A   
@@ -812,12 +812,14 @@
 dle 
-%E3%83%90%E3%83%B3%E3%83%89%E3%83%AB
+bundle
 %0A   
@@ -842,17 +842,24 @@
 urn 
-%E8%A8%AD%E5%AE%9A%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%93%E3%83%86%E3%82%A3
+setting activity
 %0A   

Modify comment.