turned fileSuffix() into a const function
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@667 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
parent
bd92e16cdc
commit
a8b9c1f25f
5 changed files with 5 additions and 5 deletions
|
@ -57,7 +57,7 @@ class EvolutionCalendarSource : public TrackingSyncSource
|
||||||
virtual void open();
|
virtual void open();
|
||||||
virtual void close();
|
virtual void close();
|
||||||
virtual void exportData(ostream &out);
|
virtual void exportData(ostream &out);
|
||||||
virtual string fileSuffix() { return "ics"; }
|
virtual string fileSuffix() const { return "ics"; }
|
||||||
virtual const char *getMimeType() const { return "text/calendar"; }
|
virtual const char *getMimeType() const { return "text/calendar"; }
|
||||||
virtual const char *getMimeVersion() const { return "2.0"; }
|
virtual const char *getMimeVersion() const { return "2.0"; }
|
||||||
virtual const char *getSupportedTypes() const { return "text/calendar:2.0"; }
|
virtual const char *getSupportedTypes() const { return "text/calendar:2.0"; }
|
||||||
|
|
|
@ -52,7 +52,7 @@ class EvolutionContactSource : public EvolutionSyncSource
|
||||||
virtual void open();
|
virtual void open();
|
||||||
virtual void close();
|
virtual void close();
|
||||||
virtual void exportData(ostream &out);
|
virtual void exportData(ostream &out);
|
||||||
virtual string fileSuffix() { return "vcf"; }
|
virtual string fileSuffix() const { return "vcf"; }
|
||||||
virtual const char *getMimeType() const;
|
virtual const char *getMimeType() const;
|
||||||
virtual const char *getMimeVersion() const;
|
virtual const char *getMimeVersion() const;
|
||||||
virtual const char *getSupportedTypes() const { return "text/vcard:3.0,text/x-vcard:2.1"; }
|
virtual const char *getSupportedTypes() const { return "text/vcard:3.0,text/x-vcard:2.1"; }
|
||||||
|
|
|
@ -267,7 +267,7 @@ class EvolutionSyncSource : public SyncSource, public EvolutionSyncSourceConfig
|
||||||
/**
|
/**
|
||||||
* file suffix for database files
|
* file suffix for database files
|
||||||
*/
|
*/
|
||||||
virtual string fileSuffix() = 0;
|
virtual string fileSuffix() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the preferred mime type of the items handled by the sync source.
|
* Returns the preferred mime type of the items handled by the sync source.
|
||||||
|
|
|
@ -59,7 +59,7 @@ class SQLiteContactSource : public TrackingSyncSource
|
||||||
virtual void close();
|
virtual void close();
|
||||||
virtual Databases getDatabases();
|
virtual Databases getDatabases();
|
||||||
virtual SyncItem *createItem(const string &uid);
|
virtual SyncItem *createItem(const string &uid);
|
||||||
virtual string fileSuffix() { return "vcf"; }
|
virtual string fileSuffix() const { return "vcf"; }
|
||||||
virtual const char *getMimeType() const { return "text/x-vcard"; }
|
virtual const char *getMimeType() const { return "text/x-vcard"; }
|
||||||
virtual const char *getMimeVersion() const { return "2.1"; }
|
virtual const char *getMimeVersion() const { return "2.1"; }
|
||||||
virtual const char *getSupportedTypes()const { return "text/vcard:3.0,text/x-vcard:2.1"; }
|
virtual const char *getSupportedTypes()const { return "text/vcard:3.0,text/x-vcard:2.1"; }
|
||||||
|
|
|
@ -169,7 +169,7 @@ class TrackingSyncSource : public EvolutionSyncSource
|
||||||
/**
|
/**
|
||||||
* file suffix for database files
|
* file suffix for database files
|
||||||
*/
|
*/
|
||||||
virtual string fileSuffix() = 0;
|
virtual string fileSuffix() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the preferred mime type of the items handled by the sync source.
|
* Returns the preferred mime type of the items handled by the sync source.
|
||||||
|
|
Loading…
Reference in a new issue