2015-09-10 20:38:15 +09:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 The Android Open Source Project
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package android.mtp;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class encapsulates information about a MTP event.
|
2015-10-07 08:12:33 -07:00
|
|
|
* Event constants are defined by the USB-IF MTP specification.
|
2015-09-10 20:38:15 +09:00
|
|
|
*/
|
|
|
|
public class MtpEvent {
|
2016-01-06 14:55:47 +09:00
|
|
|
private int mEventCode = MtpConstants.EVENT_UNDEFINED;
|
2015-09-10 20:38:15 +09:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns event code of MTP event.
|
2015-10-07 08:12:33 -07:00
|
|
|
* See the USB-IF MTP specification for the details of event constants.
|
2015-09-10 20:38:15 +09:00
|
|
|
* @return event code
|
|
|
|
*/
|
|
|
|
public int getEventCode() { return mEventCode; }
|
|
|
|
}
|