Esempio n. 1
0
/** Constructor for the iCal repeat rule type.
All data is reset.

@leave KErrNotSupported If an invalid repeat rule type is passed in.

@param aType The type of repeat rule. One of: EDaily, EWeekly, EMonthly, EYearly. 

@publishedAll
@released
@capability None
*/
EXPORT_C TCalRRule::TCalRRule(TCalRRule::TType aType)
	{
	__ASSERT_ALWAYS(aType == EDaily || aType == EWeekly || aType == EMonthly || aType == EYearly, 
						Panic(EAgmErrBadRepeat));
	iType = aType;
	InitialiseData();
	}
Esempio n. 2
0
/**********************************************************************
* Outline       : CBCable
* Description   : Callback when the USB cable is connected or disconnected.
* Argument      : _bConnected: true = Connected, false = Disconnected.
* Return value  : none
**********************************************************************/
static void CBCable(bool _bConnected)
{
    if(true == _bConnected)
    {
        DEBUG_MSG_LOW( ("USBCDC: Cable Connected\r\n"));

        /* Initialise data - as this is like re-starting */
        InitialiseData();

        g_bConnected = true;
    }
    else
    {
        DEBUG_MSG_LOW( ("USBCDC: Cable Disconnected\r\n"));
        g_bConnected = false;

        /*In case we are waiting on any flags set them here*/
        ReleaseFlags(USB_ERR_NOT_CONNECTED);
    }
}
Esempio n. 3
0
void CWFView::OnInitialUpdate()
{
	CScrollView::OnInitialUpdate();

//	if(m_ViewIsInitialised) {
//		DeleteData();
//	}

	CSize sizeTotal;
	sizeTotal.cx = 1024;
	sizeTotal.cy = 1024;
	SetScrollSizes(MM_TEXT, sizeTotal);
	m_ScrollX = 0;
	m_ScrollY = 0;

//	CSize sizeTotal;
//	// TODO: calculate the total size of this view
//	sizeTotal.cx = sizeTotal.cy = 100;
//	SetScrollSizes(MM_TEXT, sizeTotal);

	InitialiseData();
}
Esempio n. 4
0
/**********************************************************************
* Outline       : USBCDC_Init
* Description   : Initialize this module.
*                  This must be called once before using any of the
*                  other API functions.
*                  Initializes the USB Core layer.
* Argument      : none
* Return value  : Error code.
**********************************************************************/
USB_ERR USBCDC_Init(void)
{
    USB_ERR err;

    /*Initialize this modules data*/
    InitialiseData();

    /*Initialize the USB core*/
    err = USBCORE_Init(gStringDescriptorManufacturer.pucData,
                       gStringDescriptorManufacturer.length,
                       gStringDescriptorProduct.pucData,
                       gStringDescriptorProduct.length,
                       gStringDescriptorSerialNum.pucData,
                       gStringDescriptorSerialNum.length,
                       gDeviceDescriptor.pucData,
                       gDeviceDescriptor.length,
                       gConfigurationDescriptor.pucData,
                       gConfigurationDescriptor.length,
                       (CB_SETUP_PACKET)CBUnhandledSetupPacket,
                       (CB_DONE_OUT)CBDoneControlOut,
                       (CB_CABLE)CBCable,
                       (CB_ERROR)CBError);
    return err;
}
Esempio n. 5
0
/** Constructor for the iCal repeat rule type.
This does not set the type. All data is reset.
 
@publishedAll
@released
@capability None
*/
EXPORT_C TCalRRule::TCalRRule()
	{
	iType = EInvalid;
	InitialiseData();
	}