~ubuntu-branches/ubuntu/trusty/gsmlib/trusty

« back to all changes in this revision

Viewing changes to tests/testcb.cc

  • Committer: Bazaar Package Importer
  • Author(s): Mikael Hedin
  • Date: 2002-01-24 12:59:07 UTC
  • Revision ID: james.westby@ubuntu.com-20020124125907-b7qkpokx5283jdpu
Tags: upstream-1.8
ImportĀ upstreamĀ versionĀ 1.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// *************************************************************************
 
2
// * GSM TA/ME library
 
3
// *
 
4
// * File:    testcb.cc
 
5
// *
 
6
// * Purpose: Test cell broadcast SMS
 
7
// *
 
8
// * Author:  Peter Hofmann (software@pxh.de)
 
9
// *
 
10
// * Created: 3.8.2001
 
11
// *************************************************************************
 
12
 
 
13
#ifdef HAVE_CONFIG_H
 
14
#include <gsm_config.h>
 
15
#endif
 
16
#include <gsmlib/gsm_cb.h>
 
17
#include <gsmlib/gsm_nls.h>
 
18
#include <gsmlib/gsm_error.h>
 
19
#include <iostream>
 
20
 
 
21
using namespace std;
 
22
using namespace gsmlib;
 
23
 
 
24
int main(int argc, char *argv[])
 
25
{
 
26
  try
 
27
  {
 
28
    CBMessageRef cbm = new CBMessage("001000320111C3343D0F82C51A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D100");
 
29
    
 
30
    cout << cbm->toString();
 
31
    
 
32
    cbm = new CBMessage("001000320111C4EAB3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D100");
 
33
    
 
34
    cout << cbm->toString();
 
35
  }
 
36
  catch (GsmException &ge)
 
37
  {
 
38
    cerr << argv[0] << _("[ERROR]: ") << ge.what() << endl;
 
39
  }
 
40
}