equal
deleted
inserted
replaced
27 { |
27 { |
28 public: |
28 public: |
29 SUUpdater* updater; |
29 SUUpdater* updater; |
30 }; |
30 }; |
31 |
31 |
32 SparkleAutoUpdater::SparkleAutoUpdater(const QString& aUrl) |
32 SparkleAutoUpdater::SparkleAutoUpdater() |
33 { |
33 { |
34 d = new Private; |
34 d = new Private; |
35 |
35 |
36 d->updater = [SUUpdater sharedUpdater]; |
36 d->updater = [SUUpdater sharedUpdater]; |
37 [d->updater retain]; |
37 [d->updater retain]; |
38 |
|
39 NSURL* url = [NSURL URLWithString:[NSString stringWithUTF8String:aUrl.toUtf8().data()]]; |
|
40 [d->updater setFeedURL:url]; |
|
41 } |
38 } |
42 |
39 |
43 SparkleAutoUpdater::~SparkleAutoUpdater() |
40 SparkleAutoUpdater::~SparkleAutoUpdater() |
44 { |
41 { |
45 [d->updater release]; |
42 [d->updater release]; |
48 |
45 |
49 void SparkleAutoUpdater::checkForUpdates() |
46 void SparkleAutoUpdater::checkForUpdates() |
50 { |
47 { |
51 [d->updater checkForUpdatesInBackground]; |
48 [d->updater checkForUpdatesInBackground]; |
52 } |
49 } |
|
50 |
|
51 void SparkleAutoUpdater::checkForUpdatesNow() |
|
52 { |
|
53 [d->updater checkForUpdates:NULL]; |
|
54 } |