This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation TransferDialog : CPObject | |
{ | |
CPPanel _transferPanel; | |
CPTextField _URIText; | |
CPTextField _URILabel; | |
} | |
- (id)init | |
{ | |
if(self = [super init]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation TransferDialog : CPPanel | |
{ | |
CPTextField targetURIField; | |
CPButton cancelButton; | |
CPButton transferButton; | |
Call call; | |
} | |
+ (TransferDialog)transferDialogForCall:(Call)aCall | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (id)tableView:(CPTableView)aTableView objectValueForTableColumn:(CPTableColumn)aTableColumn row:(int)aRow | |
{ | |
var conversationsAsArray = [conversations allValues], | |
conversation = conversationsAsArray[aRow], | |
value; | |
switch ([aTableColumn identifier]) | |
{ | |
case @"ConversationID": | |
value = [conversation conversationID]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (CPView)tableView:(CPTableView)aTableView dataViewForTableColumn:(CPTableColumn)aTableColumn row:(int)aRow | |
{ | |
var conversation = [conversations allValues][aRow], | |
pending = [[EKActivityIndicatorView alloc] initWithFrame:CGRectMake(0,0,10,10)], | |
ringing = [[EKActivityIndicatorView alloc] initWithFrame:CGRectMake(0,0,10,10)], | |
value; | |
[pending setColor:[CPColor redColor]]; | |
[ringing setColor:[CPColor greenColor]]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var i=0; i < [[myMenu itemArray] count]; i++) | |
{ | |
var item = [myMenu itemArray][i]; | |
[item setTarget:self]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)sendStanzaToRoster:(TNStropheStanza)aStanza | |
{ | |
var contacts = [roster contacts]; | |
for (var i=0; i < [contacts count]; i++) | |
{ | |
var contact = contacts[i]; | |
[contact sendStanza:aStanza andRegisterSelector:nil ofObject:nil]; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)notifyRosterOfConversationMetadataUpdate:(CPNotification)aNotification | |
{ | |
var conversationID = [[aNotification object] conversationID]; | |
stanza = [[TNXMLNode alloc] initWithName:@"conversation-update-notification" andAttributes:{"xmlns":"http://studiotalker.com/protocol/conversations", @"conversation-id":conversationID}]; | |
CPLog.debug("Notifying roster of update to metadata for conversation with ID " + conversationID); | |
[[XMPPController defaultController] publishPEPPayload:stanza toNode:"http://studiotalker.com/protocol/conversations"]; | |
} | |
- (void)notifyRosterOfConversationCommand:(TNXMLNode)aCommand onConversationWithID:(CPString)aConversationID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auth = Blather::Stanza::Iq::Command.new :set, "authorize-plain" | |
auth.form.type = :submit | |
auth.form.fields = [ | |
{ :type => 'text-single', :var => 'sip-address', :value => endpoint.sip_address }, | |
{ :type => 'text-private', :var => 'password', :value => endpoint.password } | |
] | |
auth.to = "commands.auth.xmpp.onsip.com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Adhearsion, open source collaboration framework | |
# | |
# Init Script | |
# Copyright (c) 2010 Ben Langfeld - [email protected] | |
# All rights reserved. | |
# | |
# Author: Ben Langfeld, 2010 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import <MessageBoard/MessageBoard.j> | |
@import <StropheCappuccino/MUC/TNStropheMUCRoom.j> | |
@implementation MUCController : CPViewController | |
{ | |
BOOL _active; | |
@outlet CPTextField _subjectBox; | |
@outlet CPScrollView _conversationBox; | |
TNMessageBoard _messageBoard; |