include/alp/telephony_types.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved.
00003  * Copyright (c) 2006 PalmSource, Inc (an ACCESS company). All rights reserved.
00004  *****************************************************************************/
00012 #ifndef ALP_TELEPHONY_TYPES_H_
00013 #define ALP_TELEPHONY_TYPES_H_
00014 
00015 
00016 /******************************************************************************
00017  *      Includes
00018  *****************************************************************************/
00019 
00020 #include <time.h>
00021 
00022 #include <alp/telephony_values.h>
00023 
00024 
00025 /******************************************************************************
00026  *      Definitions
00027  *****************************************************************************/
00028 
00029 typedef         int                             AlpTelApplicationId;
00030 typedef         uint16_t                AlpTelTransId;
00031 typedef         uint16_t                AlpTelFunctionId;
00032 typedef         uint16_t                AlpTelNotificationId;
00033 
00034 
00035 /******************************************************************************
00036  *      Structures
00037  *****************************************************************************/
00038 
00044 
00045 typedef struct _AlpTelMessage AlpTelMessage;
00046 struct _AlpTelMessage
00047 {
00048         alp_status_t                            returnCode;                     
00049         AlpTelTransId                           transId;                        
00050         AlpTelFunctionId                        functionId;                     
00051         void*                                           paramP;
00052         size_t                                          paramSize;
00053 };
00054 
00056 typedef struct _AlpNotifyEventTelPowConnection AlpNotifyEventTelPowConnection;
00057 struct _AlpNotifyEventTelPowConnection
00058 {
00059         uint8_t                 connectionStatus;                               
00060         uint8_t                 authenticationStatus;                   
00061 };
00062 
00064 typedef struct _AlpNotifyEventTelSpcCall AlpNotifyEventTelSpcCall;
00065 struct _AlpNotifyEventTelSpcCall
00066 {
00067         uint8_t                 status;                 
00068         uint8_t                 callId;                 
00069         uint8_t                 mode;                   
00070         uint8_t                 direction;              
00071         bool                    multiparty;             
00072         uint16_t                lineId;                 
00073         uint32_t                duration;               
00074         uint32_t                dialNumberSize; 
00075         uint32_t                dialNameSize;   
00076         alp_status_t    error;                  
00077 };
00078 
00080 typedef struct _AlpNotifyEventTelSmsIncoming AlpNotifyEventTelSmsIncoming;
00081 struct _AlpNotifyEventTelSmsIncoming
00082 {
00083         uint16_t        storageId;              
00084         uint8_t         messageId;              
00085 };
00086 
00088 typedef struct _AlpNotifyEventTelDtcStarted AlpNotifyEventTelDtcStarted;
00089 struct _AlpNotifyEventTelDtcStarted
00090 {
00091         uint32_t        cncProfileId;   
00092         uint8_t         type;                   
00093         uint8_t         contextId;              
00094 };
00095 
00097 typedef struct _AlpNotifyEventTelDtcClosed AlpNotifyEventTelDtcClosed;
00098 struct _AlpNotifyEventTelDtcClosed
00099 {
00100         uint32_t        cncProfileId;   
00101         uint32_t        counter1;               
00102         uint32_t        counter2;               
00103         uint8_t         type;                   
00104         uint8_t         contextId;              
00105 };
00106 
00108 typedef struct _AlpNotifyEventTelPsEventReporting AlpNotifyEventTelPsEventReporting;
00109 struct _AlpNotifyEventTelPsEventReporting
00110 {
00111         uint8_t         eventType;              
00112         uint8_t         contextId;              
00113         uint8_t         channelId;              
00114 };
00115 
00116 typedef struct _AlpNotifyEventTelNwkSsInitiated AlpNotifyEventTelNwkSsInitiated;
00117 struct _AlpNotifyEventTelNwkSsInitiated
00118 {
00119         uint32_t        action;
00120         uint32_t        serviceCode;
00121 };
00122 
00123 typedef struct _AlpTelNwkSsInfo AlpTelNwkSsInfo;
00124 struct _AlpTelNwkSsInfo
00125 {
00126         union
00127         {
00128                 struct
00129                 {
00130                         uint8_t         status;         
00131                         uint8_t         classType;      
00132                 } barring;                                      
00133                 struct
00134                 {
00135                         uint8_t         status;         
00136                         uint8_t         classType;      
00137                 } waiting;                                      
00138                 struct
00139                 {
00140                         uint8_t         status;         
00141                 } callIdRestriction;            
00142                 struct
00143                 {
00144                         struct
00145                         {
00146                                 uint8_t         status;                                                         
00147                                 char            number[kAlpTelPhoneNumberMaxLen];       
00148                                 uint16_t        numberType;                                                     
00149                                 uint8_t         time;                                                           
00150                         } voice;
00151                         struct
00152                         {
00153                                 uint8_t         status;                                                         
00154                                 char            number[kAlpTelPhoneNumberMaxLen];       
00155                                 uint16_t        numberType;                                                     
00156                                 uint8_t         time;                                                           
00157                         } fax;
00158                         struct
00159                         {
00160                                 uint8_t         status;                                                         
00161                                 char            number[kAlpTelPhoneNumberMaxLen];       
00162                                 uint16_t        numberType;                                                     
00163                                 uint8_t         time;                                                           
00164                         } data;
00165                 } forwarding;                                                                           
00166         } serviceInfo;
00167 };
00168 
00169 typedef struct _AlpNotifyEventTelNwkSsTerminated AlpNotifyEventTelNwkSsTerminated;
00170 struct _AlpNotifyEventTelNwkSsTerminated
00171 {
00172         uint32_t                action;
00173         uint32_t                serviceCode;
00174         alp_status_t    error;
00175         AlpTelNwkSsInfo info;
00176 };
00177 
00179 typedef struct _AlpNotifyEventTelNwkUssd AlpNotifyEventTelNwkUssd;
00180 struct _AlpNotifyEventTelNwkUssd
00181 {
00182         size_t          size;                   
00183         uint8_t         result;                 
00184 };
00185 
00187 typedef struct _AlpNotifyEventTelNwkStatus AlpNotifyEventTelNwkStatus;
00188 struct _AlpNotifyEventTelNwkStatus
00189 {
00190         uint8_t         status;                                         
00191         uint8_t         accessTechnology;                       
00192 };
00193 
00195 typedef struct _AlpNotifyEventTelProvisioningFileStructure      AlpNotifyEventTelProvisioningFileStructure;
00196 struct _AlpNotifyEventTelProvisioningFileStructure
00197 {
00198         bool bootstrapIsPresent;
00199         bool config1IsPresent;
00200         bool config2IsPresent;
00201 };
00202 
00204 typedef struct _AlpNotifyEventTelVoiceMessageWaitingFlag AlpNotifyEventTelVoiceMessageWaitingFlag;
00205 struct _AlpNotifyEventTelVoiceMessageWaitingFlag
00206 {
00207         bool            mode;                           
00208         uint16_t        lineId;                         
00209 };
00210 
00212 typedef struct _AlpTelNumber AlpTelNumber;
00213 struct _AlpTelNumber
00214 {
00215         char*                                           numberP;
00216         size_t                                          size;
00217         uint16_t                                        type;           
00218 };
00219 
00221 typedef struct _AlpTelEmailAddress AlpTelEmailAddress;
00222 struct _AlpTelEmailAddress
00223 {
00224         char*                                           emailAddressP;
00225         size_t                                          size;
00226 };
00227 
00229 typedef struct _AlpTelPassthru AlpTelPassthru;
00230 struct _AlpTelPassthru
00231 {
00232         char*                                           pathP;
00233         size_t                                          pathSize;
00234 };
00235 
00237 typedef struct _AlpTelTime AlpTelTime;
00238 struct _AlpTelTime
00239 {
00240         uint8_t                                         year;                           
00241         uint8_t                                         month; 
00242         uint8_t                                         day; 
00243         uint8_t                                         hour; 
00244         uint8_t                                         minute; 
00245         uint8_t                                         second; 
00246         int8_t                                          timeZone;                       
00247 };
00248 
00250 typedef char AlpTelISOName[2];
00258 
00259 typedef char AlpTelNwkOperatorId[8];                            
00260 
00261 typedef struct _AlpTelNwkOperator AlpTelNwkOperator;
00262 struct _AlpTelNwkOperator                                                       
00263 {
00264         AlpTelNwkOperatorId                     id;
00265         char*                                           nameP;
00266         size_t                                          nameSize;
00267         uint8_t                                         type;
00268         uint8_t                                         status;
00269         uint8_t                                         accessTechnology;
00270 };
00271 
00272 typedef struct _AlpTelNwkOperators AlpTelNwkOperators;
00273 struct _AlpTelNwkOperators
00274 {
00275         AlpTelNwkOperator*                      listP;                          
00276         size_t                                          count;                          
00277 };
00278 
00279 typedef struct _AlpTelNwkPreferredOperator AlpTelNwkPreferredOperator;
00280 struct _AlpTelNwkPreferredOperator
00281 {
00282         AlpTelNwkOperatorId                     id;
00283         char*                                           nameP;
00284         size_t                                          nameSize;
00285         uint16_t                                        index;
00286 };
00287 
00288 typedef struct _AlpTelNwkPreferredOperators AlpTelNwkPreferredOperators;
00289 struct _AlpTelNwkPreferredOperators
00290 {
00291         AlpTelNwkPreferredOperator*     listP;
00292         size_t                                          count;
00293 };
00294 
00295 typedef struct _AlpTelNwkLocation AlpTelNwkLocation;
00296 struct _AlpTelNwkLocation
00297 {
00298         uint16_t                                        areaCode;
00299         uint16_t                                        cellId;
00300 };
00301 
00302 typedef struct _AlpTelNwkUssd AlpTelNwkUssd;
00303 struct _AlpTelNwkUssd
00304 {
00305         char*                                           bufferP;
00306         size_t                                          bufferSize;
00307         uint8_t                                         result;                         
00308         uint8_t                                         dataCodingScheme;
00309 };
00310 
00311 typedef struct _AlpTelNwkRegistration AlpTelNwkRegistration;
00312 struct _AlpTelNwkRegistration
00313 {
00314         AlpTelNwkOperatorId                     operatorId;                     
00315         uint8_t                                         mode;                           
00316         uint8_t                                         accessTechnology;       
00317 };
00318 
00319 typedef struct _AlpTelNwkRadioBands AlpTelNwkRadioBands;
00320 struct _AlpTelNwkRadioBands
00321 {
00322         uint8_t*                                        listP;
00323         size_t                                          count;
00324 };
00325 
00326 typedef struct _AlpTelNwkRadioBand AlpTelNwkRadioBand;
00327 struct _AlpTelNwkRadioBand
00328 {
00329         uint8_t                                         mode;
00330         uint8_t                                         id;
00331 };
00332 
00333 typedef struct _AlpTelNwkOperatorName AlpTelNwkOperatorName;
00334 struct _AlpTelNwkOperatorName
00335 {
00336         char*                                           nameP;
00337         size_t                                          nameSize;
00338 };
00339 
00340 typedef struct _AlpTelNwkOperatorLogo AlpTelNwkOperatorLogo;
00341 struct _AlpTelNwkOperatorLogo
00342 {
00343         AlpTelNwkOperatorId                     operatorId;
00344         char*                                           logoPathP;
00345         size_t                                          logoPathSize;
00346 };
00347 
00348 typedef struct _AlpTelNwkGprsRegistration AlpTelNwkGprsRegistration;
00349 struct _AlpTelNwkGprsRegistration
00350 {
00351         uint8_t                                         registrationType;               
00352         uint8_t                                         registrationStatus;             
00353         uint8_t                                         cellSupportingStatus;   
00354         uint16_t                                        locationAreaCode;               
00355         uint16_t                                        cellId;                                 
00356 };
00363 typedef struct _AlpTelStyFacilities AlpTelStyFacilities;
00364 struct _AlpTelStyFacilities
00365 {
00366         uint16_t*                                       typeP;
00367         size_t                                          count;
00368 };
00369 
00370 typedef struct _AlpTelStyFacility AlpTelStyFacility;
00371 struct _AlpTelStyFacility
00372 {
00373         uint16_t                                        type;           
00374         uint8_t                                         status;         
00375         uint8_t                                         classType;      
00376         uint32_t                                        reserved;       
00377 };
00384 typedef struct _AlpTelCfgPhoneNumber AlpTelCfgPhoneNumber;
00385 struct _AlpTelCfgPhoneNumber
00386 {
00387         AlpTelNumber                            voice;
00388         AlpTelNumber                            fax;
00389         AlpTelNumber                            data;
00390 };
00391 
00392 typedef struct _AlpTelCfgLevelRange AlpTelCfgLevelRange;
00393 struct _AlpTelCfgLevelRange
00394 {
00395         uint8_t                                         min;
00396         uint8_t                                         max;
00397 };
00398 
00399 typedef struct _AlpTelCfgCallForwarding AlpTelCfgCallForwarding;
00400 struct _AlpTelCfgCallForwarding
00401 {
00402         AlpTelNumber                            number;         
00403         AlpTelNumber                            subAddr;
00404         uint8_t                                         reason;         
00405         uint8_t                                         mode;           
00406         uint8_t                                         classType;      
00407         uint8_t                                         time;           
00408         uint8_t                                         status;         
00409 };
00410 
00411 typedef struct _AlpTelCfgCallWaiting AlpTelCfgCallWaiting;
00412 struct _AlpTelCfgCallWaiting
00413 {
00414         uint8_t                                         state;          
00415         uint8_t                                         classType;      
00416 };
00417 
00418 typedef struct _AlpTelCfgAlsPhoneNumber AlpTelCfgAlsPhoneNumber;
00419 struct _AlpTelCfgAlsPhoneNumber
00420 {
00421         AlpTelCfgPhoneNumber            number;
00422         uint16_t                                        lineId;
00423 };
00424 
00425 typedef struct _AlpTelCfgAlsVoiceMailNumber AlpTelCfgAlsVoiceMailNumber;
00426 struct _AlpTelCfgAlsVoiceMailNumber
00427 {
00428         AlpTelNumber                            number;
00429         char*                                           textP;
00430         size_t                                          textSize;
00431         uint16_t                                        lineId;
00432 };
00433 
00434 typedef struct _AlpTelCfgPrefLanguages AlpTelCfgPrefLanguages;
00435 struct _AlpTelCfgPrefLanguages
00436 {
00437         AlpTelISOName*                          listP;
00438         size_t                                          count;
00439 };
00447 
00448 typedef struct _AlpTelSmsDateTime AlpTelSmsDateTime;
00449 struct _AlpTelSmsDateTime
00450 {
00451         uint32_t                                        dateTime;       
00452         bool                                            absolute;       
00453 };
00454 
00456 typedef struct _AlpTelSmsGsmSubmitMessage AlpTelSmsGsmSubmitMessage;
00457 struct _AlpTelSmsGsmSubmitMessage
00458 {
00459         uint8_t                                         protocolId;                             
00460         uint8_t                                         messageClass;                   
00461         bool                                            rejectDuplicateRequest; 
00462         bool                                            replyPath;                              
00463 };
00464 
00466 typedef struct _AlpTelSmsSubmitMessage AlpTelSmsSubmitMessage;
00467 struct _AlpTelSmsSubmitMessage
00468 {
00469         AlpTelSmsDateTime                       validityPeriod;                 
00470         bool                                            networkDeliveryRequest; 
00471         uint8_t                                         networkType;                    
00472         union
00473         {
00474                 AlpTelSmsGsmSubmitMessage       gsm;                            
00475         } networkParams;
00476 };
00477 
00479 typedef struct _AlpTelSmsGsmDeliverMessage AlpTelSmsGsmDeliverMessage;
00480 struct _AlpTelSmsGsmDeliverMessage
00481 {
00482         uint8_t                                         protocolId;             
00483         uint8_t                                         messageClass;   
00484         bool                                            replyPath;              
00485 };
00486 
00488 typedef struct _AlpTelSmsDeliverMessage AlpTelSmsDeliverMessage;
00489 struct _AlpTelSmsDeliverMessage
00490 {
00491         AlpTelSmsDateTime                       timeStamp;                              
00492         bool                                            otherToReceive;                 
00493         bool                                            reportDeliveryIndicator;
00494         uint8_t                                         networkType;                    
00495         union
00496         {
00497                 AlpTelSmsGsmDeliverMessage      gsm;                            
00498         } networkParams;
00499 };
00500 
00502 typedef struct _AlpTelSmsReportMessage AlpTelSmsReportMessage;
00503 struct _AlpTelSmsReportMessage
00504 {
00505         AlpTelSmsDateTime                       timeStamp;                      
00506         uint8_t                                         reportType;                     
00507         uint8_t                                         report;                         
00508 };
00509 
00511 typedef struct _AlpTelSmsCellBroadcastMessage AlpTelSmsCellBroadcastMessage;
00512 struct _AlpTelSmsCellBroadcastMessage
00513 {
00514         uint8_t                 accessNetwork;                          
00515         uint8_t                 messageType;                            
00516         uint16_t                messageId;                                      
00517         uint8_t                 geographicalScope;                      
00518         uint8_t                 updateNumber;                           
00519         uint16_t                messageCode;                            
00520         uint8_t                 language;                                       
00521         uint8_t                 messageClass;                           
00522 
00523 };
00524 
00526 typedef struct _AlpTelSmsMultiPartInfo AlpTelSmsMultiPartInfo;
00527 struct _AlpTelSmsMultiPartInfo
00528 {
00529         uint16_t                                        bytesSent;              
00530         uint16_t                                        current;                
00531         uint16_t                                        count;                  
00532         uint16_t                                        id;                             
00533 };
00534 
00536 typedef struct _AlpTelSmsNbsExtension AlpTelSmsNbsExtension;
00537 struct _AlpTelSmsNbsExtension
00538 {
00539         uint16_t                                        dest;           
00540         uint16_t                                        source;         
00541 };
00542 
00544 typedef struct _AlpTelSmsSpecialIndicationExtension AlpTelSmsSpecialIndicationExtension;
00545 struct _AlpTelSmsSpecialIndicationExtension
00546 {
00547         uint8_t                                         type;                           
00548         bool                                            active;                         
00549         bool                                            msgStore;                       
00550         uint8_t                                         msgWaitingCount;        
00551         uint16_t                                        lineId;                         
00552 };
00553 
00555 typedef struct _AlpTelSmsEmsTextFormattingExtension AlpTelSmsEmsTextFormattingExtension;
00556 struct _AlpTelSmsEmsTextFormattingExtension 
00557 {
00558         uint16_t                start;                                  
00559         uint16_t                length;                                 
00560         uint8_t                 alignment;                              
00561         uint8_t                 fontSize;                               
00562         bool                    bold;                                   
00563         bool                    italic;                                 
00564         bool                    underlined;                             
00565         bool                    strikethrough;                  
00566         uint8_t                 textForegroundColor;    
00567         uint8_t                 textBackgroundColor;    
00568 };
00569 
00571 typedef struct _AlpTelSmsEmsPredefinedSoundExtension AlpTelSmsEmsPredefinedSoundExtension;
00572 struct _AlpTelSmsEmsPredefinedSoundExtension  
00573 {
00574         uint16_t        start;          
00575         uint8_t         soundId;        
00576 };
00577 
00579 typedef struct _AlpTelSmsEmsUserDefinedSoundExtension AlpTelSmsEmsUserDefinedSoundExtension;
00580 struct _AlpTelSmsEmsUserDefinedSoundExtension
00581 {
00582         uint16_t        start;                  
00583         uint8_t         iMelodySize;    
00584         uint8_t         iMelody[128];   
00585 };
00586 
00588 typedef struct _AlpTelSmsEmsPredefinedAnimationExtension AlpTelSmsEmsPredefinedAnimationExtension;
00589 struct _AlpTelSmsEmsPredefinedAnimationExtension
00590 {
00591         uint16_t        start;                  
00592         uint8_t         animationId;    
00593 };
00594 
00596 typedef struct _AlpTelSmsEmsAnimationExtension AlpTelSmsEmsLargeAnimationExtension, AlpTelSmsEmsSmallAnimationExtension;
00597 struct _AlpTelSmsEmsAnimationExtension
00598 {
00599         uint16_t        start;                          
00600         uint8_t         animationSize;          
00601         uint8_t         animationP[128];        
00602 };
00603 
00605 typedef struct _AlpTelSmsEmsPictureExtension AlpTelSmsEmsLargePictureExtension, AlpTelSmsEmsSmallPictureExtension;
00606 struct _AlpTelSmsEmsPictureExtension  
00607 {
00608         uint16_t        start;                  
00609         uint8_t         pictureSize;    
00610         uint8_t         pictureP[128];  
00611 };
00612 
00614 typedef struct _AlpTelSmsEmsVariablePictureExtension AlpTelSmsEmsVariablePictureExtension;
00615 struct _AlpTelSmsEmsVariablePictureExtension
00616 {
00617         uint16_t        start;                  
00618         uint8_t         width;                  
00619         uint8_t         height;                 
00620         uint8_t         pictureSize;    
00621         uint8_t         pictureP[128];  
00622 };
00623 
00625 typedef struct _AlpTelSmsUserExtension AlpTelSmsUserExtension;
00626 struct _AlpTelSmsUserExtension
00627 {
00628         size_t                                  headerSize;             
00629         uint8_t                                 headerP[140];   
00630 };
00631 
00633 typedef struct _AlpTelSmsExtension AlpTelSmsExtension;
00634 struct _AlpTelSmsExtension
00635 {
00636         uint8_t                                         type;                                                                           
00637         union
00638         {
00639                 AlpTelSmsNbsExtension                                           nbs;                                    
00640                 AlpTelSmsSpecialIndicationExtension                     ind;                                    
00641                 AlpTelSmsEmsTextFormattingExtension                     emsTextFormatting;              
00642                 AlpTelSmsEmsPredefinedSoundExtension            emsPredefinedSound;             
00643                 AlpTelSmsEmsUserDefinedSoundExtension           emsUserDefinedSound     ;       
00644                 AlpTelSmsEmsPredefinedAnimationExtension        emsPredefinedAnimation; 
00645                 AlpTelSmsEmsLargeAnimationExtension             emsLargeAnimation;              
00646                 AlpTelSmsEmsSmallAnimationExtension                     emsSmallAnimation;              
00647                 AlpTelSmsEmsLargePictureExtension                       emsLargePicture;                
00648                 AlpTelSmsEmsSmallPictureExtension                       emsSmallPicture;                
00649                 AlpTelSmsEmsVariablePictureExtension            emsVariablePicture;     
00650 
00651                 AlpTelSmsUserExtension                          user;                                                   
00652         } extension;
00653 };
00654 
00656 typedef struct _AlpTelSmsMessage AlpTelSmsMessage;
00657 struct _AlpTelSmsMessage
00658 {
00659         uint8_t*                                        dataP;                                  
00660         uint32_t                                        messageId;                              
00661         size_t                                          dataSize;                               
00662         AlpTelNumber                            address1;                               
00663         AlpTelNumber                            address2;                               
00664         AlpTelSmsMultiPartInfo          multiPartInfo;                  
00665         AlpTelSmsExtension*                     extensionP;                             
00666         size_t                                          extensionCount;                 
00667         uint16_t                                        apiVersion;                             
00668         uint16_t                                        phoneIndex;                             
00669         uint8_t                                         dataCodingScheme;               
00670         uint8_t                                         messageType;                    
00671         uint8_t                                         status;                                 
00672         union
00673         {
00674                 AlpTelSmsSubmitMessage                  submit;                 
00675                 AlpTelSmsDeliverMessage                 deliver;                
00676                 AlpTelSmsReportMessage                  report;                 
00677                 AlpTelSmsCellBroadcastMessage   cellbroadcast;  
00678         } message;
00679 };
00680 
00682 typedef struct _AlpTelSmsMessages AlpTelSmsMessages;
00683 struct _AlpTelSmsMessages
00684 {
00685         AlpTelSmsMessage*                       listP;          
00686         size_t                                          count;          
00687 };
00688 
00690 typedef struct _AlpTelSmsStorages AlpTelSmsStorages;
00691 struct _AlpTelSmsStorages
00692 {
00693         uint16_t*                                       idP;            
00694         size_t                                          count;          
00695 };
00696 
00698 typedef struct _AlpTelSmsStorage AlpTelSmsStorage;
00699 struct _AlpTelSmsStorage
00700 {
00701         size_t                                          usedSlot;       
00702         size_t                                          totalSlot;      
00703         uint16_t                                        id;                     
00704 };
00705 
00707 typedef struct _AlpTelSmsCellBroadcastRange AlpTelSmsCellBroadcastMessageIdRange, AlpTelSmsCellBroadcastMessageDcsRange;
00708 struct _AlpTelSmsCellBroadcastRange
00709 {
00710         uint16_t                                minimum;                        
00711         uint16_t                                maximum;                        
00712 };
00713 
00715 typedef struct _AlpTelSmsCellBroadcastTypes AlpTelSmsCellBroadcastTypes;
00716 struct _AlpTelSmsCellBroadcastTypes
00717 {
00718         size_t                                                                  messageIdsCount;        
00719         AlpTelSmsCellBroadcastMessageIdRange*   messageIdsP;            
00720         size_t                                                                  messageDcsCount;        
00721         AlpTelSmsCellBroadcastMessageDcsRange*  messageDcsP;            
00722         bool                                                                    accepted;                       
00723 };
00730 typedef struct _AlpTelSpcCall AlpTelSpcCall;
00731 struct _AlpTelSpcCall
00732 {
00733         char*                                           dialNameP;
00734         size_t                                          dialNameSize;
00735         AlpTelNumber                            dialNumber;
00736         bool                                            multiparty;
00737         uint8_t                                         callId;
00738         uint8_t                                         direction;
00739         uint8_t                                         status;
00740         uint8_t                                         mode;
00741         uint16_t                                        alsLineId;
00742 };
00743 
00744 typedef struct _AlpTelSpcCalls AlpTelSpcCalls;
00745 struct _AlpTelSpcCalls
00746 {
00747         AlpTelSpcCall*                          listP;
00748         size_t                                          count;
00749 };
00750 
00751 typedef struct _AlpTelSpcToneDurationRange AlpTelSpcToneDurationRange;
00752 struct _AlpTelSpcToneDurationRange
00753 {
00754         uint16_t                                        min;
00755         uint16_t                                        max;
00756 };
00757 
00758 typedef struct _AlpTelSpcAlsLineIdRangeType AlpTelSpcAlsLineIdRange;
00759 struct _AlpTelSpcAlsLineIdRangeType
00760 {
00761         uint16_t*                                       listP;
00762         size_t                                          count;
00763 };
00770 typedef struct _AlpTelPhbPhonebooks AlpTelPhbPhonebooks;
00771 struct _AlpTelPhbPhonebooks
00772 {
00773         uint16_t*                                       idP;                            
00774         size_t                                          count;                          
00775 };
00776 
00777 typedef struct _AlpTelPhbPhonebook AlpTelPhbPhonebook;
00778 struct _AlpTelPhbPhonebook
00779 {
00780         uint16_t                                        id;                                                     
00781         uint16_t                                        firstIndex;                                     
00782         uint16_t                                        lastIndex;                                      
00783         size_t                                          usedSlot;                                       
00784         size_t                                          totalSlot;                                      
00785         size_t                                          fullNameMaxSize;                        
00786         size_t                                          dialNumberMaxSize;                      
00787         size_t                                          secondNameMaxSize;                      
00788         size_t                                          groupNameMaxSize;                       
00789         size_t                                          emailAddressMaxSize;            
00790         size_t                                          addNumberCount;                         
00791         size_t                                          emailAddressCount;                      
00792         size_t                                          availableEmailSlot;                     
00793         size_t                                          availableAddNumberSlot;         
00794         size_t                                          availableSecondNameSlot;        
00795         size_t                                          availableGroupNameSlot;         
00796         uint16_t*                                       availableEmailSlotP;            
00797         uint16_t*                                       availableAddNumberSlotP;        
00798 };
00799 
00800 typedef struct _AlpTelPhbEntry AlpTelPhbEntry;
00801 struct _AlpTelPhbEntry
00802 {
00803         uint16_t                                        phoneIndex;                             
00804         AlpTelNumber                            dialNumber;                                     
00805         char*                                           fullNameP;                                      
00806         size_t                                          fullNameSize;                           
00807         char*                                           secondNameP;                            
00808         size_t                                          secondNameSize;                         
00809         char*                                           groupNameP;                             
00810         size_t                                          groupNameSize;                          
00811         AlpTelEmailAddress*                     emailAddressListP;                      
00812         size_t                                          emailAddressCount;                      
00813         AlpTelNumber*                           addNumberListP;                         
00814         size_t                                          addNumberCount;                         
00815         unsigned char                           hidden;                                         
00816 
00817         AlpTelNumber                            addNumber;                              
00818         char*                                           emailAddressP;                          
00819         size_t                                          emailAddressSize;                       
00820 
00821         uint16_t                                        dialNumberType;                         
00822         uint16_t*                                       addNumberTypeP;                         
00823 };
00824 
00825 typedef struct _AlpTelPhbEntries AlpTelPhbEntries;
00826 struct _AlpTelPhbEntries
00827 {
00828         AlpTelPhbEntry*                         entryP;
00829         size_t                                          entryCount;
00830         uint16_t                                        firstIndex;
00831         uint16_t                                        lastIndex;
00832 };
00839 typedef struct _AlpTelEmcEmergencyNumbers AlpTelEmcEmergencyNumbers;
00840 struct _AlpTelEmcEmergencyNumbers
00841 {
00842         AlpTelNumber*                           listP;
00843         size_t                                          count;
00844 };
00852 typedef struct _AlpTelInfIdentification AlpTelInfIdentification;
00853 struct _AlpTelInfIdentification
00854 {
00855         char*                                           valueP;                                 
00856         size_t                                          size;                                   
00857         uint8_t                                         type;
00858 };
00859 
00860 typedef struct _AlpTelInfCallsDuration AlpTelInfCallsDuration;
00861 struct _AlpTelInfCallsDuration
00862 {
00863         uint32_t                                        lastCall;
00864         uint32_t                                        receivedCalls;
00865         uint32_t                                        dialedCalls;
00866 };
00867 
00868 typedef struct _AlpTelInfCall AlpTelInfCall;
00869 struct _AlpTelInfCall
00870 {
00871         char*                                           fullNameP;
00872         AlpTelNumber                            dialNumber;
00873         size_t                                          fullNameSize;
00874         struct tm                                       dateTime;
00875 };
00876 
00877 typedef struct _AlpTelInfCallsList AlpTelInfCallsList;
00878 struct _AlpTelInfCallsList
00879 {
00880         AlpTelInfCall*                          listP;
00881         size_t                                          count;
00882         uint8_t                                         type;
00883 };
00884 
00885 typedef struct _AlpTelInfPricePerUnit AlpTelInfPricePerUnit;
00886 struct _AlpTelInfPricePerUnit
00887 {
00888         char                                            currency[4];
00889         uint32_t                                        entireValue;
00890         uint32_t                                        decimalValue;
00891 };
00898 typedef struct _AlpTelOemCall AlpTelOemCall;
00899 struct _AlpTelOemCall
00900 {
00901         uint32_t                                        oemId;                  
00902         void*                                           paramP;                 
00903         size_t                                          paramSize;              
00904         uint8_t                                         funcId;                 
00905 };
00912 typedef struct _AlpTelPsContext AlpTelPsContext;
00913 struct _AlpTelPsContext
00914 {
00915         uint8_t                                         contextID;                              
00916         uint8_t                                         pdpType;                                
00917         uint8_t                                         dataCompression;                
00918         uint8_t                                         headerCompression;              
00919         char*                                           accessPointNameP;               
00920         size_t                                          accessPointNameSize;
00921         char*                                           pdpAddressP;                    
00922         size_t                                          pdpAddressSize;
00923 };
00924 
00925 typedef struct _AlpTelPsQosAdvanced AlpTelPsQosAdvanced;
00926 struct _AlpTelPsQosAdvanced
00927 {
00928         uint8_t                                         trafficClass;                           
00929         uint8_t                                         ulMaxBitRate;                           
00930         uint8_t                                         dlMaxBitRate;                           
00931         uint8_t                                         ulGtedBitRate;                          
00932         uint8_t                                         dlGtedBitRate;                          
00933         uint8_t                                         deliveryOrder;                          
00934         uint8_t                                         sduErrorRatio;                          
00935         uint16_t                                        maxSduSize;                                     
00936         uint8_t                                         resBitErrorRatio;                       
00937         uint8_t                                         deliveryErrSdu;                         
00938         uint16_t                                        transferDelay;                          
00939         uint8_t                                         trafficHandlingPriority;        
00940 };
00941 
00942 typedef struct _AlpTelPsQos AlpTelPsQos;
00943 struct _AlpTelPsQos
00944 {
00945         uint8_t                                         contextID;                                      
00946         uint8_t                                         precedence;                                     
00947         uint8_t                                         delay;                                          
00948         uint8_t                                         reliability;                            
00949         uint8_t                                         peak;                                           
00950         uint8_t                                         mean;                                           
00951         AlpTelPsQosAdvanced                     advanced;                                       
00952 };
00953 
00954 typedef struct _AlpTelPsDefinedCids AlpTelPsDefinedCids;
00955 struct _AlpTelPsDefinedCids
00956 {
00957         size_t                                          cidCount;                                       
00958         uint8_t*                                        cidsP;                                          
00959 };
00960 
00961 typedef struct _AlpTelPsPdpActivation AlpTelPsPdpActivation;
00962 struct _AlpTelPsPdpActivation
00963 {
00964         uint8_t                                         contextID;                                      
00965         uint8_t                                         state;                                          
00966 };
00967 
00968 typedef struct _AlpTelPsDataCounter AlpTelPsDataCounter;
00969 struct _AlpTelPsDataCounter
00970 {
00971         uint8_t                                         contextID;      
00972         uint32_t                                        ulBytes;        
00973         uint32_t                                        dlBytes;        
00974         uint32_t                                        ulPackets;      
00975         uint32_t                                        dlPackets;      
00976 };
00983 typedef struct _AlpTelDtcCsConnection AlpTelDtcCsConnection;
00984 struct _AlpTelDtcCsConnection
00985 {
00986         uint8_t                                         speed;
00987         uint8_t                                         service;
00988         uint8_t                                         connection;
00989         AlpTelNumber                            dialNumber;
00990 };
00991 
00992 typedef struct _AlpTelDtcPsConnection AlpTelDtcPsConnection;
00993 struct _AlpTelDtcPsConnection
00994 {
00995         AlpTelPsContext                         context;
00996         AlpTelPsQos                                     qosMinimum;
00997         AlpTelPsQos                                     qosRequested;
00998         char*                                           nameP;                                          
00999         size_t                                          nameSize;                                       
01000         char*                                           pwdP;                                           
01001         size_t                                          pwdSize;                                        
01002         uint8_t                                         ip[16];                                         
01003         uint8_t                                         dns1[16];                                       
01004         uint8_t                                         dns2[16];                                       
01005         uint8_t                                         gtw[16];                                        
01006         char                                            networkInterfaceName[16];       
01007         uint8_t                                         pdId;                                           
01008         bool                                            ipDirectConnectionF;            
01009 };
01010 
01011 typedef struct _AlpTelDtcConnectionInfo AlpTelDtcConnectionInfo;
01012 struct _AlpTelDtcConnectionInfo
01013 {
01014         uint32_t                                        dataCallCncPofileId;    
01015         uint32_t                                        commandCncPofileId;             
01016         uint8_t                                         type;
01017         union
01018         {
01019                 AlpTelDtcCsConnection           cs;
01020                 AlpTelDtcPsConnection           ps;
01021         } connection;
01022 };
01029 typedef struct _AlpTelCatConfig AlpTelCatConfig;
01030 struct _AlpTelCatConfig
01031 {
01032         uint8_t*                                        profileP;                               
01033         uint32_t                                        profileSize;                    
01034         char                                            lanCode[2];                     
01035         uint8_t                                         mode;                                   
01036 };
01037 
01038 typedef struct _AlpTelCatCmdParams AlpTelCatCmdParams;
01039 struct _AlpTelCatCmdParams
01040 {
01041         void*                                           cmdParamP;                              
01042         size_t                                          cmdParamSize;                   
01043         char*                                           textP;                                  
01044         uint8_t                                         iconId;                                 
01045         uint8_t                                         cmdId;                                  
01046         char                                            explicitIcon;                   
01047         char                                            noResponse;                             
01048         size_t                                          textSize;                               
01049 };
01050 
01051 typedef struct _AlpTelCatCmdResponse AlpTelCatCmdResponse;
01052 struct _AlpTelCatCmdResponse
01053 {
01054         char*                                           respP;                                  
01055         unsigned char                           itemIdentifier;                 
01056         size_t                                          respSize;                               
01057         uint8_t                                         cmdId;                                  
01058         uint8_t                                         respType;                               
01059         uint8_t                                         resCode;                                
01060         uint8_t                                         addInfo;                                
01061         unsigned long                           duration;                               
01062 
01063         // Additional fields
01064 
01065         // required in response to Send SS proactive command (to be concateneted in the TERMINAL ANSWER with the additional info in the first Result TLV or with the additional info in the second Result TLV  )
01066         uint8_t*                                        resultParametersP;              
01067         uint8_t                                         resultParametersSize;   
01068 
01069         // required in response to PROVIDE LOCAL INFORMATION proactive command
01070         AlpTelTime                                      time;                                   
01071         AlpTelISOName                           language;                               
01072 
01073         // required when call control has modified a proactive command
01074         uint8_t                                         requestedAction;                
01075         uint8_t                                         resCode2;                               
01076         uint8_t                                         addInfo2;                               
01077 };
01078 
01079 typedef struct _AlpTelCatMenuSelection AlpTelCatMenuSelection;
01080 struct _AlpTelCatMenuSelection
01081 {
01082         uint8_t                                         evtCode;                                
01083         uint8_t                                         appId;                                  
01084 };
01085 
01086 typedef struct _AlpTelCatEventToCard AlpTelCatEventToCard;
01087 struct _AlpTelCatEventToCard
01088 {
01089         uint8_t                                         evtCode;                                        
01090         char                                            lanCode[2];                                     
01091         uint8_t                                         browserTerminationCause;        
01092 };
01093 
01094 
01095 typedef struct _AlpTelCatRefreshFileList        AlpTelCatRefreshFileList;
01096 struct _AlpTelCatRefreshFileList
01097 {
01098         unsigned short*                         filePathP;                      
01099         unsigned char                           filePathCount;          
01100         unsigned char                           fileIdCount;            
01101         unsigned char                           opCode;                         
01102         unsigned char*                          AID;                            
01103 };
01104 
01105 typedef struct _AlpTelCatSetUpEventList AlpTelCatSetUpEventList;
01106 struct _AlpTelCatSetUpEventList
01107 {
01108         uint8_t*                                        eventP;                         
01109         uint8_t                                         eventCount;                     
01110 };
01111 
01112 typedef struct _AlpTelCatSetUpCall AlpTelCatSetUpCall;
01113 struct _AlpTelCatSetUpCall
01114 {
01115         uint8_t*                                        bearerCapP;                             
01116         char*                                           numberP;                                
01117         char*                                           userConfTextP;                  
01118         char*                                           callEstaTextP;                  
01119         char*                                           subAddressP;                    
01120         size_t                                          userConfTextSize;               
01121         size_t                                          numberSize;                             
01122         size_t                                          callEstaTextSize;               
01123         size_t                                          subAddressSize;                 
01124         uint8_t                                         bearerCapSize;                  
01125         
01126         unsigned long                           duration;                               
01127         uint8_t                                         condition;                              
01128         
01129         uint8_t                                         userConfIconId;                 
01130         char                                            userConfExplicitIcon;   
01131         uint8_t                                         callEstaIconId;                 
01132         char                                            callEstaExplicitIcon;   
01133         
01134 };
01135 
01136 typedef struct _AlpTelCatLaunchBrowser AlpTelCatLaunchBrowser;
01137 struct _AlpTelCatLaunchBrowser
01138 {
01139         char*                                           urlP;                           
01140         size_t                                          urlSize;
01141         char*                                           gatewayP;                       
01142         size_t                                          gatewaySize;
01143         uint16_t*                                       filePathP;                      
01144 
01145         uint8_t*                                        prefBearersP;           
01146         uint8_t                                         fileIdCount;            
01147         uint8_t                                         prefBearerCount;        
01148         uint8_t                                         condition;                      
01149         uint8_t                                         browserId;                      
01150 };
01151 
01152 typedef struct _AlpTelCatPlayTone AlpTelCatPlayTone;
01153 struct _AlpTelCatPlayTone
01154 {
01155         uint32_t                                        sndDuration;            
01156         uint8_t                                         sndCode;                        
01157         unsigned char                           vibrateAlert;           
01158 };
01159 
01160 typedef struct _AlpTelCatDisplayText AlpTelCatDisplayText;
01161 struct _AlpTelCatDisplayText
01162 {
01163         char                                            priority;                       
01164         char                                            clearAfterDelay;        
01165         char                                            immediateResponse;      
01166         unsigned long                           duration;                       
01167 };
01168 
01169 typedef struct _AlpTelCatGetInkey AlpTelCatGetInkey;
01170 struct _AlpTelCatGetInkey
01171 {
01172         char                                            helpInfo;                       
01173         uint8_t                                         respType;                       
01174         unsigned long                           duration;                       
01175 };
01176 
01177 typedef struct _AlpTelCatGetInput AlpTelCatGetInput;
01178 struct _AlpTelCatGetInput
01179 {
01180         char*                                           defRespP;                       
01181         size_t                                          defRespSize;            
01182         char                                            hideUserInput;          
01183         char                                            helpInfo;                       
01184         uint8_t                                         minRespLength;          
01185         uint8_t                                         maxRespLength;          
01186         uint8_t                                         respType;                       
01187 };
01188 
01189 typedef struct _AlpTelCatItem AlpTelCatItem;
01190 struct _AlpTelCatItem
01191 {
01192         char*                                           nameP;                          
01193         size_t                                          nameSize;                       
01194         uint8_t                                         id;                                     
01195         uint8_t                                         iconId;                         
01196         char                                            expIcon;                        
01197         uint8_t                                         nextActionInd;          
01198         AlpTelCatItem*                          nextItemP;                      
01199 };
01200 
01201 typedef struct _AlpTelCatItemList AlpTelCatItemList;
01202 struct _AlpTelCatItemList
01203 {
01204         AlpTelCatItem*                          firstItemP;                     
01205         size_t                                          itemCount;                      
01206         char                                            softKey;                        
01207         char                                            helpInfo;                       
01208         uint8_t                                         defItemId;                      
01209 };
01210 
01211 typedef struct _AlpTelCatSendShortMessage AlpTelCatSendShortMessage;
01212 struct _AlpTelCatSendShortMessage
01213 {
01214         char*                                           addressP;                       
01215         size_t                                          addressSize;
01216         uint8_t*                                        TPDUP;                          
01217         size_t                                          TPDUSize;
01218         char                                            packingRequired;        
01219         uint8_t                                         RPCauseElement;         
01220 
01221 };
01222 
01223 typedef struct _AlpTelCatBuffer AlpTelCatBuffer;
01224 struct _AlpTelCatBuffer         
01225 {
01226         uint8_t*                                        bufferP;                                
01227         size_t                                          bufferSize;                             
01228         uint8_t                                         other;                                  
01229 };
01230 
01231 typedef struct _AlpTelCatOpenChannel AlpTelCatOpenChannel;
01232 struct _AlpTelCatOpenChannel
01233 {
01234         char*                                           addressP;
01235         char*                                           subAddressP;
01236         char*                                           otherAddressP;
01237         char*                                           destinationAddressP;
01238         char*                                           loginP;
01239         char*                                           passwordP;
01240         uint8_t*                                        bearerParamsP;
01241         char*                                           accessPointP;
01242         uint32_t                                        duration1;                              
01243         uint32_t                                        duration2;                              
01244         uint16_t                                        bufferSize;
01245         uint16_t                                        transportPort;
01246         char                                            onDemand;                               
01247         uint8_t                                         bearerCode;                     
01248         uint8_t                                         otherAddressType;               
01249         uint8_t                                         destinationAddressType; 
01250         uint8_t                                         transportType;                  
01251         uint8_t                                         addressSize;
01252         uint8_t                                         subAddressSize;
01253         uint8_t                                         otherAddressSize;
01254         uint8_t                                         bearerParamsSize;
01255         uint8_t                                         loginSize;
01256         uint8_t                                         passwordSize;
01257         uint8_t                                         destinationAddressSize;
01258         uint8_t                                         accessPointSize;
01259 };
01260 
01261 typedef struct _AlpTelCatLocalInfo AlpTelCatLocalInfo;
01262 struct _AlpTelCatLocalInfo      
01263 {
01264         uint8_t         type;                   
01265 };
01266 
01267 
01268 typedef struct _AlpTelCatSSOperation AlpTelCatSSOperation;
01269 struct _AlpTelCatSSOperation            
01270 {
01271         uint8_t*                                        ssRequestP;                             
01272         uint8_t                                         ssRequestSize;                  
01273 
01274         uint8_t                                         resultOperationCode;    
01275         uint8_t                                         resultErrorCode;                
01276         uint8_t*                                        resultParametersP;              
01277         uint8_t                                         resultParametersSize;   
01278 };
01279 
01280 
01282 typedef struct _AlpTelCatMEanswer AlpTelCatMEanswer;
01283 struct _AlpTelCatMEanswer       
01284 {
01285         uint8_t                                         cmdId;                                  
01286         uint8_t                                         resCode;                                
01287         uint8_t                                         addInfo;                                
01288                                 
01289 };
01290 
01291 
01294 typedef struct _AlpTelCatSIManswer AlpTelCatSIManswer;
01295 struct _AlpTelCatSIManswer      
01296 {
01297         uint8_t                                 result;                         
01298         
01299         char*                                   textP;                          
01300         size_t                                  textSize;                       
01301         
01302         char*                                   addressP1;                      
01303 
01304         uint8_t                                 addressSize1;           
01305         
01306         char*                                   addressP2;                      
01307         uint8_t                                 addressSize2;           
01308         
01309                                                                                                 
01310         char*                                   subAddressP;            
01311         uint8_t                                 subAddressSize;         
01312         
01313         uint8_t                                 BCrepeatIndicator;      
01314         
01315         uint8_t*                                capabilityConfP1;       
01316         uint8_t                                 capabilityConfSize1;
01317         
01318         uint8_t*                                capabilityConfP2;       
01319         uint8_t                                 capabilityConfSize2;
01320 };
01327 typedef struct _AlpTelCardFile AlpTelCardFile;
01328 struct _AlpTelCardFile
01329 {
01330         uint16_t*                                       pathP;                  
01331 
01332 
01333 
01334         uint8_t*                                        bufP;                   
01335         size_t                                          bufSize;                
01336         size_t                                          byteCount;              
01337 
01338         uint16_t                                        partOffset;             
01339         uint16_t                                        partSize;               
01340 
01341         uint16_t                                        fileSize;               
01342         uint8_t                                         fileStruct;             
01343         uint8_t                                         mode;                   
01344 
01345         uint8_t                                         pathCount;              
01346         uint8_t                                         recId;                  
01347         uint8_t                                         recSize;                
01348 
01349 };
01350 
01351 typedef struct _AlpTelCardApdu AlpTelCardApdu;
01352 struct _AlpTelCardApdu
01353 {
01354         uint8_t*                                        cmdP;                   
01355         size_t                                          cmdSize;                
01356         uint8_t*                                        respP;                  
01357         size_t                                          respSize;               
01358 };
01359 
01360 typedef struct _AlpTelCardAtr AlpTelCardAtr;
01361 struct _AlpTelCardAtr
01362 {
01363         uint8_t*                                        answerP;                
01364         size_t                                          answerSize;             
01365         uint8_t                                         phase;                  
01366 };
01367 
01369 typedef struct _AlpTelCardCallControlParams AlpTelCardCallControlParams;
01370 struct _AlpTelCardCallControlParams
01371 {
01372         uint8_t                                 requestedAction;                
01373 
01374         char*                                   textP;                                  
01375         uint8_t                                 textSize;                               
01376         
01377         char*                                   bufferP;                                
01378         uint8_t                                 bufferSize;                             
01379         uint8_t                                 dcs;                                    
01380 };
01384 /******************************************************************************
01385  *      Type definition
01386  *****************************************************************************/
01387 
01392 typedef void            (*AlpTelCallback)               (AlpTelMessage* iTelMsgP, void* iParamP);
01396 #endif // ALP_TELEPHONY_TYPES_H_

Generated on Wed Jul 30 07:06:39 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.