updated to the new pikotools api: changed the way how child_spaces are created in Space class
This commit is contained in:
@@ -330,20 +330,20 @@ void ExportInfo::SendAllFilesFromDir(long dir_id)
|
||||
|
||||
void ExportInfo::AdditionalExport(const Item & item)
|
||||
{
|
||||
if( item.item_content.meta.child_spaces )
|
||||
{
|
||||
for(size_t i=0 ; i<item.item_content.meta.child_spaces->size() ; ++i)
|
||||
{
|
||||
pt::Space & child = *(*item.item_content.meta.child_spaces)[i];
|
||||
const pt::Space::TableType * child_table = item.item_content.meta.find_child_space_table();
|
||||
|
||||
if( child.name && *child.name == L"export" )
|
||||
AdditionalExport(item, child);
|
||||
if( child_table )
|
||||
{
|
||||
for(const pt::Space * child : *child_table)
|
||||
{
|
||||
if( child->is_child_space_name(L"export") )
|
||||
AdditionalExport(item, *child);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void ExportInfo::AdditionalExport(const Item & item, pt::Space & meta)
|
||||
void ExportInfo::AdditionalExport(const Item & item, const pt::Space & meta)
|
||||
{
|
||||
meta.to_list(L"additional_export", additional_export);
|
||||
|
||||
|
@@ -103,7 +103,7 @@ private:
|
||||
bool SkipDir(long dir_id, std::wstring & dir);
|
||||
|
||||
void AdditionalExport(const Item & item);
|
||||
void AdditionalExport(const Item & item, pt::Space & meta);
|
||||
void AdditionalExport(const Item & item, const pt::Space & meta);
|
||||
void AdditionalExport(const std::wstring & path);
|
||||
|
||||
bool HasRecurrenceId(long id);
|
||||
|
Reference in New Issue
Block a user