This file is indexed.

/usr/include/buteosyncfw5/SyncClientInterfacePrivate.h is in libbuteosyncfw5-dev 0.7.21+16.04.20151216.1-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
/*
 * This file is part of buteo-syncfw package
 *
 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
 *
 * Contact: Sateesh Kavuri <sateesh.kavuri@nokia.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * version 2.1 as published by the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 *
 */

#ifndef SYNCCLIENTINTERFACEPRIVATE_H
#define SYNCCLIENTINTERFACEPRIVATE_H

#include <QObject>
#include "SyncDaemonProxy.h"
#include <SyncProfile.h>

namespace Buteo {

class SyncProfile;
class SyncSchedule;
class SyncResults;
class SyncClientInterface;

//! Private implementation class for SyncClientInterface.
class SyncClientInterfacePrivate:public QObject
{
	Q_OBJECT
public:
	/*!\brief Constructor
	 *
	 *@param aParent - pointer to the parent object
	 */
	SyncClientInterfacePrivate(SyncClientInterface *aParent);

	/*! \brief Destructor
	 */
	~SyncClientInterfacePrivate();

	/*! \brief function to start the sync
	 *
	 * @param aProfileId - id of the profile to start the sync
	 */
	bool startSync(const QString &aProfileId) const;

	/*! \brief function to abort the sync
	 *
	 * @param aProfileId - id of the profile to abort the sync
	 */
	void abortSync(const QString &aProfileId) const;

	/*! \brief function to get Running sync list
	 *
	 * @return  - list of running sync profile ids
	 */
	QStringList getRunningSyncList();

	/*! \brief function to remove a profile
	 *
	 * @param aProfileId id of the profule to remove to add
	 */
	bool removeProfile(QString &aProfileId);

	/*! \brief function to update an existing profile
	 *
	 * @param aProfile profile object to add
	 */
	bool updateProfile(Buteo::SyncProfile &aProfile);

	/*! \brief function to add a profile
	 *
	 * @return returns the backup restore state.
	 */
	bool getBackUpRestoreState();

	/*! \brief function to check if the interface is valid
	 *
	 * @return  status of the validity of the interface
	 */
    bool isValid();

	/*! \brief this function converts the SyncSchedule object to an xml
	 *  file of the below format
     * \code
     * <schedule interval="15" days="1,2,3,4,5,6,7" time="">
        <rush begin="08:00:00" enabled="true" interval="5" end="17:00:00" days="1,2,3,4,5"/>
      </schedule>
     * \endcode
     *
     * @param aProfileId - profile id
     * @param aSchedule - schedule object
     */
	bool setSyncSchedule(QString &aProfileId,SyncSchedule &aSchedule);

    /*! \brief this function converts the save the syncResults into
     * log.xml file corresponding to profileName.
     * \code
     * <syncresults scheduled="false" majorcode="1" minorcode = "501" time="2010-06-01T06:43:32">
     * \endcode
     */
    bool saveSyncResults(const QString &aProfileId,const Buteo::SyncResults &aSyncResults);

    /*! \brief To get lastSyncResult.
     *  \param aProfileId
     *  \return SyncResults of syncLastResult.
     */
    Buteo::SyncResults getLastSyncResult(const QString &aProfileId);

    /*! \brief Gets all visible sync profiles.
     *
     * Returns all sync profiles that should be visible in sync ui. A profile
     * is visible if it has not been explicitly set as hidden.
     * \return The list of sync profiles.
     */
    QList<QString /*profileAsXml*/> allVisibleSyncProfiles();

    /*! \brief Gets a sync profile.
     *
     * Loads and merges also all sub-profiles that are referenced from the
     * main profile. Loads the log of finished synchronization sessions with
     * this profile.
     * \param aProfileId Name of the profile to get.
     * \return The sync profile as Xml string.
     */
    QString syncProfile(const QString &aProfileId);
    
    /*! \brief Gets a sync profiles which matches the key-value.
     *
     * Loads and merges also all sub-profiles that are referenced from the
     * main profile. Loads the log of finished synchronization sessions with
     * this profile.
     * \param aKey Key to match for profile.
     * \param aValue Value to match for profile.
     * \return The sync profiles as Xml string list.
     */
    QStringList syncProfilesByKey(const QString &aKey, const QString &aValue);
    
    /*! \brief Gets a profiles  matching the profile type.
     *
     * \param aType Type of the profile service/storage/sync.
     * \return The sync profile ids as string list.
     */
    QStringList syncProfilesByType(const QString &aType);

public slots:

	/*! \brief this is the slot where we will receive the xml data for profile from msyncd.
	 * The XML Data received will be of the following format
	 * \code <?xml version="1.0" encoding="UTF-8"?>
	 *	<profile type="sync" name="ovi.com-sr1">
	 *		<key value="1" name="accountid"/>
	 *		<key value="true" name="active"/>
	 *		<key value="true" name="enabled"/>
	 *		<key value="false" name="hidden"/>
	 *		<key value="true" name="scheduled"/>
	 *		<key value="true" name="use_accounts"/>
	 *		<profile type="service" name="ovi.com"/>
	 *		<profile type="storage" name="hcontacts">
	 *		<key value="true" name="enabled"/>
	 *		</profile>
	 *		<schedule interval="15" days="1,2,3,4,5,6,7" time="">
	 *		<rush begin="08:00:00" enabled="true" interval="5" end="17:00:00" days="1,2,3,4,5"/>
	 *		</schedule>
	 *	</profile>
	 *	\endcode
	 * @param 	aProfileId - id of the profile
	 * @param   aChangeType - change type whether addition , deletion or modification
	 * @param  aChangedProfileAsXml - changed profile arrives as xml
	 *
	 */
    void slotProfileChanged(QString aProfileId , int aChangeType , QString aChangedProfileAsXml);

	/*! \brief this is the slot where we will receive the xml data for results from msyncd
	 * the xml looks like this
	 * \code <syncresults scheduled="false" majorcode="0" minorcode = "0" time="2010-06-01T06:43:32">
	 *	<target name="">
	 *	 <local modified="0" added="0" deleted="0"/>
	 *	<remote modified="0" added="4" deleted="0"/>
	 *	</target>
	 * </syncresults>
	 *\endcode
	 * @param aProfileId - id of the profile
	 * @param aLastSyncResultAsXml - last sync result as xml
	 */
	void resultsAvailable(QString aProfileId , QString aLastSyncResultAsXml);

signals:

	/*! \brief Signal that gets emitted on receiving profileChanged from msyncd
	 *
	 * @param 	aProfileId - id of the profile
	 * @param   aChangeType - change type whether addition , deletion or modification
     * @param  aChangedProfile - changed sync profie as XMl string.
	 */
    void profileChanged(QString aProfileId,int aChangeType, QString aChangedProfile);

	/*! \brief Signal that gets emitted on receiving resultsAvailable from msyncd
	 *
	 * @param 	aProfileId - id of the profile
	 * @param   aLastResults - last results as SyncResults Object
	 */
	void resultsAvailable(QString aProfileId,Buteo::SyncResults aLastResults);

private:

	SyncDaemonProxy *iSyncDaemon;

	Buteo::SyncClientInterface *iParent;

};


};

#endif