2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @author Zbigniew Kostrzewa (z.kostrzewa@samsung.com)
21 #ifndef SYNCNETWORKSTATUS_H_
22 #define SYNCNETWORKSTATUS_H_
25 #include <dpl/noncopyable.h>
26 #include <dpl/shared_ptr.h>
27 #include <DBus/Message.h>
32 class SyncNetworkStatus : private DPL::Noncopyable
35 explicit SyncNetworkStatus(const DBus::MessagePtr& message);
37 int getStatus() const;
38 int getHandle() const;
39 std::string getSource() const;
40 int getMailId() const;
41 int getErrorCode() const;
44 void initialize(const DBus::MessagePtr& message);
50 * Not sure what it stores. According to source code of Email application
51 * it can contain string "ACTIVESYNC" or name of the file which stores body.
58 typedef DPL::SharedPtr<SyncNetworkStatus> SyncNetworkStatusPtr;
62 #endif // SYNCNETWORKSTATUS_H_