diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-29 20:34:03 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-29 20:34:22 +0100 |
commit | 46c87fe5b3b4b6d2be399ef32b23d14060cd2241 (patch) | |
tree | 15aa7f86caa0aa83836526a9741c562316640cb8 /TestPhone.st | |
parent | 373483321d9b7d923cb91e328a019f979137f8c4 (diff) |
GSM: Move the IMSI/AuKey into a PhoneConfig class.
Diffstat (limited to 'TestPhone.st')
-rw-r--r-- | TestPhone.st | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/TestPhone.st b/TestPhone.st index 15780f5..37cd8f1 100644 --- a/TestPhone.st +++ b/TestPhone.st @@ -96,10 +96,32 @@ Object subclass: IPAConfig [ semaphore [ ^ sem ] - sendLU [ + sendLU: aPhone [ | proc | - proc := LUProcedure initWith: (connection sccpHandler). + proc := LUProcedure initWith: (connection sccpHandler) phone: aPhone. proc execute. ] ] +Object subclass: PhoneConfig [ + | imsi auKey | + + <comment: 'I am the config of a phone. I do have an IMSI and such.'> + + PhoneConfig class >> initWith: aImsi auKey: anAuKey [ + ^ self new + imsi: aImsi; + auKey: anAuKey; + yourself + ] + + imsi: aImsi [ + imsi := aImsi. + ] + + imsi [ ^ imsi ] + auKey [ ^ auKey ] + auKey: anAuKey [ + auKey := anAuKey. + ] +] |