| 1 |
<?php |
| 2 |
|
| 3 |
namespace wpCloud\StatelessMedia\Sync; |
| 4 |
|
| 5 |
interface ISync { |
| 6 |
|
| 7 |
/** |
| 8 |
* Start Process from begining. |
| 9 |
* Needs to be implemented separately for each kind of sync. |
| 10 |
*/ |
| 11 |
public function start(); |
| 12 |
|
| 13 |
/** |
| 14 |
* Fill queue with more items if available. |
| 15 |
* Needs to be implemented separately for each kind of sync. |
| 16 |
*/ |
| 17 |
public function extend_queue(); |
| 18 |
|
| 19 |
/** |
| 20 |
* Implementation of the count of items for this sync type. |
| 21 |
*/ |
| 22 |
public function get_total_items(); |
| 23 |
|
| 24 |
/** |
| 25 |
* Sync Process needs to have a display-able name |
| 26 |
*/ |
| 27 |
public function get_name(); |
| 28 |
|
| 29 |
/** |
| 30 |
* Helper window. Return false if no window needed. |
| 31 |
*/ |
| 32 |
public function get_helper_window(); |
| 33 |
} |
| 34 |
|