Skip to content

Commit

Permalink
quasselFullyConnected delegate callback #3
Browse files Browse the repository at this point in the history
  • Loading branch information
guruz committed Apr 17, 2020
1 parent fc061d2 commit 7d19c2a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 5 additions & 0 deletions quassel-for-ios/quassel-for-ios/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@ - (void) popToLoginAndShowError:(NSString*)errorMsg
}
}

- (void) quasselFullyConnected
{

}

- (void) doReconnectIfNecessary
{
if (shouldAutoReconnect
Expand Down
10 changes: 4 additions & 6 deletions quassel-for-ios/quassel-for-ios/QuasselCoreConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,10 @@ - (void) handleReceivedNetworkInit:(NSArray*)networkInit
}


// networkInitsReceived++;
// if (networkInitsReceived == neworkIdList.count ) {
// [delegate quasselAllNetworkInitReceived];
// } else {
// [delegate quasselNetworkInitReceived:networkName];
// }
networkInitsReceived++;
if (networkInitsReceived == neworkIdList.count ) {
[delegate quasselFullyConnected];
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
- (void) quasselAuthenticated;
- (void) quasselBufferListReceived;
- (void) quasselNetworkInitReceived:(NSString*)networkName;
- (void) quasselAllNetworkInitReceived;
- (void) quasselAllNetworkInitReceived; // FIXME: misnomer since we have quasselFullyConnected
- (void) quasselFullyConnected;
- (void) quasselBufferListUpdated;
- (void) quasselSocketDidDisconnect:(NSString*)msg;

Expand Down

0 comments on commit 7d19c2a

Please sign in to comment.