/* * Copyright (c) 2024 Huawei Device Co., Ltd. * 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. */ #ifndef TEST_IFOO_H #define TEST_IFOO_H #include #include #include #include "myinterface.h" #include "myseq.h" using test::myseq; using test::myinterface; namespace test { class IFoo : public IRemoteBroker { public: DECLARE_INTERFACE_DESCRIPTOR(u"test.IFoo"); virtual ErrCode void_test_func() = 0; virtual ErrCode bool_test_func( bool inParam, bool& outParam, bool inoutParam, bool& result) = 0; virtual ErrCode byte_test_func( int8_t inParam, int8_t& outParam, int8_t inoutParam, int8_t& result) = 0; virtual ErrCode short_test_func( short inParam, short& outParam, short inoutParam, short& result) = 0; virtual ErrCode int_test_func( int32_t inParam, int32_t& outParam, int32_t inoutParam, int32_t& result) = 0; virtual ErrCode long_test_func( long inParam, long& outParam, long inoutParam, long& result) = 0; virtual ErrCode string_test_func( const std::string& inParam, std::string& outParam, const std::string& inoutParam, std::string& result) = 0; virtual ErrCode float_test_func( float inParam, float& outParam, float inoutParam, float& result) = 0; virtual ErrCode double_test_func( double inParam, double& outParam, double inoutParam, double& result) = 0; virtual ErrCode char_test_func( zchar inParam, zchar& outParam, zchar inoutParam, zchar& result) = 0; virtual ErrCode seq_test_func( const myseq& inParam, myseq& outParam, myseq* inoutParam, myseq& result) = 0; virtual ErrCode interface_test_func( const sptr& inParam, sptr& outParam, const sptr& inoutParam, sptr& result) = 0; protected: const int VECTOR_MAX_SIZE = 102400; const int LIST_MAX_SIZE = 102400; const int MAP_MAX_SIZE = 102400; }; } // namespace test #endif // TEST_IFOO_H