11401458bSopenharmony_ci/* 21401458bSopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 31401458bSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 41401458bSopenharmony_ci * you may not use this file except in compliance with the License. 51401458bSopenharmony_ci * You may obtain a copy of the License at 61401458bSopenharmony_ci * 71401458bSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 81401458bSopenharmony_ci * 91401458bSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 101401458bSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 111401458bSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 121401458bSopenharmony_ci * See the License for the specific language governing permissions and 131401458bSopenharmony_ci * limitations under the License. 141401458bSopenharmony_ci */ 151401458bSopenharmony_ci 161401458bSopenharmony_ci#ifndef OHOS_HIVIEWDFX_QUERY_ARGUMENT_H 171401458bSopenharmony_ci#define OHOS_HIVIEWDFX_QUERY_ARGUMENT_H 181401458bSopenharmony_ci 191401458bSopenharmony_ci#include "parcel.h" 201401458bSopenharmony_ci 211401458bSopenharmony_cinamespace OHOS { 221401458bSopenharmony_cinamespace HiviewDFX { 231401458bSopenharmony_ciclass QueryArgument : public Parcelable { 241401458bSopenharmony_cipublic: 251401458bSopenharmony_ci QueryArgument() {} 261401458bSopenharmony_ci QueryArgument(int64_t beginTime, int64_t endTime, int32_t maxEvents = 0, 271401458bSopenharmony_ci int64_t fromSeq = -1, int64_t toSeq = -1) 281401458bSopenharmony_ci : beginTime(beginTime), endTime(endTime), maxEvents(maxEvents), fromSeq(fromSeq), toSeq(toSeq) {} 291401458bSopenharmony_ci ~QueryArgument() {} 301401458bSopenharmony_ci 311401458bSopenharmony_ci bool Marshalling(Parcel& parcel) const override; 321401458bSopenharmony_ci static QueryArgument* Unmarshalling(Parcel& parcel); 331401458bSopenharmony_ci 341401458bSopenharmony_ci int64_t beginTime = -1; 351401458bSopenharmony_ci int64_t endTime = -1; 361401458bSopenharmony_ci int32_t maxEvents = 0; 371401458bSopenharmony_ci int64_t fromSeq = -1; 381401458bSopenharmony_ci int64_t toSeq = -1; 391401458bSopenharmony_ci}; 401401458bSopenharmony_ci} // namespace HiviewDFX 411401458bSopenharmony_ci} // namespace OHOS 421401458bSopenharmony_ci 431401458bSopenharmony_ci#endif // OHOS_HIVIEWDFX_QUERY_ARGUMENT_H