diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
commit | 393f1b414746a7f1977971dd7659dd2b47092b11 (patch) | |
tree | 81d0ca1ee70ab86a7d79c1991abe5c387b655fb2 /src/tests/signals.cpp | |
parent | c259f95bd0e58b247940a339bb9b4b401b4e9438 (diff) | |
parent | 7e25a863325dc3e9762397e700030969e093b087 (diff) | |
download | libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.gz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.bz2 libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.xz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.zip |
Wow! Merged the branch, streams are updated, and there's no more FString, run
the fixstrings.sh script in the support directory to (hopefully) automatically
update your projects.
Diffstat (limited to 'src/tests/signals.cpp')
-rw-r--r-- | src/tests/signals.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/tests/signals.cpp b/src/tests/signals.cpp index e53c16e..14bbc9c 100644 --- a/src/tests/signals.cpp +++ b/src/tests/signals.cpp | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2007-2010 Xagasoft, All rights reserved. | 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. |
3 | * | 3 | * |
4 | * This file is part of the libbu++ library and is released under the | 4 | * This file is part of the libbu++ library and is released under the |
5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
@@ -32,22 +32,22 @@ public: | |||
32 | sio << iState << ": void fnc1( " << a << " )" << sio.nl; | 32 | sio << iState << ": void fnc1( " << a << " )" << sio.nl; |
33 | } | 33 | } |
34 | 34 | ||
35 | void fnc2( int a, Bu::FString b ) | 35 | void fnc2( int a, Bu::String b ) |
36 | { | 36 | { |
37 | sio << iState << ": void fnc2( " << a << ", \"" << b << "\" )" << sio.nl; | 37 | sio << iState << ": void fnc2( " << a << ", \"" << b << "\" )" << sio.nl; |
38 | } | 38 | } |
39 | 39 | ||
40 | void fnc3( int a, Bu::FString b, double c ) | 40 | void fnc3( int a, Bu::String b, double c ) |
41 | { | 41 | { |
42 | sio << iState << ": void fnc3( " << a << ", \"" << b << "\", " << c << " )" << sio.nl; | 42 | sio << iState << ": void fnc3( " << a << ", \"" << b << "\", " << c << " )" << sio.nl; |
43 | } | 43 | } |
44 | 44 | ||
45 | void fnc4( int a, Bu::FString b, double c, char d ) | 45 | void fnc4( int a, Bu::String b, double c, char d ) |
46 | { | 46 | { |
47 | sio << iState << ": void fnc4( " << a << ", \"" << b << "\", " << c << ", '" << d << "' )" << sio.nl; | 47 | sio << iState << ": void fnc4( " << a << ", \"" << b << "\", " << c << ", '" << d << "' )" << sio.nl; |
48 | } | 48 | } |
49 | 49 | ||
50 | void fnc5( int a, Bu::FString b, double c, char d, long e ) | 50 | void fnc5( int a, Bu::String b, double c, char d, long e ) |
51 | { | 51 | { |
52 | sio << iState << ": void fnc5( " << a << ", \"" << b << "\", " << c << ", '" << d << "', " << e << " )" << sio.nl; | 52 | sio << iState << ": void fnc5( " << a << ", \"" << b << "\", " << c << ", '" << d << "', " << e << " )" << sio.nl; |
53 | } | 53 | } |
@@ -66,22 +66,22 @@ void pfnc1( int a ) | |||
66 | sio << ": void pfnc1( " << a << " )" << sio.nl; | 66 | sio << ": void pfnc1( " << a << " )" << sio.nl; |
67 | } | 67 | } |
68 | 68 | ||
69 | void pfnc2( int a, Bu::FString b ) | 69 | void pfnc2( int a, Bu::String b ) |
70 | { | 70 | { |
71 | sio << ": void pfnc2( " << a << ", \"" << b << "\" )" << sio.nl; | 71 | sio << ": void pfnc2( " << a << ", \"" << b << "\" )" << sio.nl; |
72 | } | 72 | } |
73 | 73 | ||
74 | void pfnc3( int a, Bu::FString b, double c ) | 74 | void pfnc3( int a, Bu::String b, double c ) |
75 | { | 75 | { |
76 | sio << ": void pfnc3( " << a << ", \"" << b << "\", " << c << " )" << sio.nl; | 76 | sio << ": void pfnc3( " << a << ", \"" << b << "\", " << c << " )" << sio.nl; |
77 | } | 77 | } |
78 | 78 | ||
79 | void pfnc4( int a, Bu::FString b, double c, char d ) | 79 | void pfnc4( int a, Bu::String b, double c, char d ) |
80 | { | 80 | { |
81 | sio << ": void pfnc4( " << a << ", \"" << b << "\", " << c << ", '" << d << "' )" << sio.nl; | 81 | sio << ": void pfnc4( " << a << ", \"" << b << "\", " << c << ", '" << d << "' )" << sio.nl; |
82 | } | 82 | } |
83 | 83 | ||
84 | void pfnc5( int a, Bu::FString b, double c, char d, long e ) | 84 | void pfnc5( int a, Bu::String b, double c, char d, long e ) |
85 | { | 85 | { |
86 | sio << ": void pfnc5( " << a << ", \"" << b << "\", " << c << ", '" << d << "', " << e << " )" << sio.nl; | 86 | sio << ": void pfnc5( " << a << ", \"" << b << "\", " << c << ", '" << d << "', " << e << " )" << sio.nl; |
87 | } | 87 | } |
@@ -105,22 +105,22 @@ int main() | |||
105 | cb1 = slot( &pfnc1 ); | 105 | cb1 = slot( &pfnc1 ); |
106 | cb1( 5 ); | 106 | cb1( 5 ); |
107 | 107 | ||
108 | Signal2<void, int, Bu::FString> cb2( slot( &t, &Thing::fnc2 ) ); | 108 | Signal2<void, int, Bu::String> cb2( slot( &t, &Thing::fnc2 ) ); |
109 | cb2( 5, "Hi there" ); | 109 | cb2( 5, "Hi there" ); |
110 | cb2 = slot( &pfnc2 ); | 110 | cb2 = slot( &pfnc2 ); |
111 | cb2( 5, "Hi there" ); | 111 | cb2( 5, "Hi there" ); |
112 | 112 | ||
113 | Signal3<void, int, Bu::FString, double> cb3( slot( &t, &Thing::fnc3 ) ); | 113 | Signal3<void, int, Bu::String, double> cb3( slot( &t, &Thing::fnc3 ) ); |
114 | cb3( 5, "Hi there", 12.85 ); | 114 | cb3( 5, "Hi there", 12.85 ); |
115 | cb3 = slot( &pfnc3 ); | 115 | cb3 = slot( &pfnc3 ); |
116 | cb3( 5, "Hi there", 12.85 ); | 116 | cb3( 5, "Hi there", 12.85 ); |
117 | 117 | ||
118 | Signal4<void, int, Bu::FString, double, char> cb4( slot( &t, &Thing::fnc4 ) ); | 118 | Signal4<void, int, Bu::String, double, char> cb4( slot( &t, &Thing::fnc4 ) ); |
119 | cb4( 5, "Hi there", 12.85, 'z' ); | 119 | cb4( 5, "Hi there", 12.85, 'z' ); |
120 | cb4 = slot( &pfnc4 ); | 120 | cb4 = slot( &pfnc4 ); |
121 | cb4( 5, "Hi there", 12.85, 'z' ); | 121 | cb4( 5, "Hi there", 12.85, 'z' ); |
122 | 122 | ||
123 | Signal5<void, int, Bu::FString, double, char, long> cb5( slot( &t, &Thing::fnc5 ) ); | 123 | Signal5<void, int, Bu::String, double, char, long> cb5( slot( &t, &Thing::fnc5 ) ); |
124 | cb5( 5, "Hi there", 12.85, 'z', 849 ); | 124 | cb5( 5, "Hi there", 12.85, 'z', 849 ); |
125 | cb5 = slot( &pfnc5 ); | 125 | cb5 = slot( &pfnc5 ); |
126 | cb5( 5, "Hi there", 12.85, 'z', 849 ); | 126 | cb5( 5, "Hi there", 12.85, 'z', 849 ); |